diff --git a/config-wine-hawc2.sh b/config-wine-hawc2.sh
index a750903fcf4dc26d63d688e5854863142bab66c4..61379e74f2ac52310d989a3f0188cd68f12331be 100755
--- a/config-wine-hawc2.sh
+++ b/config-wine-hawc2.sh
@@ -28,12 +28,12 @@ echo "-------- adding C:\bin to wine/Windows PATH"
 #rm ./tmp.reg
 #WINEARCH=win32 WINEPREFIX=~/$WINEDIRNAME wine regedit /E ./tmp.reg "HKEY_CURRENT_USER\Environment"
 #printf '"PATH"="c:\\bin"' >> ./tmp.reg
-printf 'REGEDIT4\n[HKEY_CURRENT_USER\Environment]\n"PATH"="c:\\bin"' >> ./tmp.reg
+printf 'REGEDIT4\n[HKEY_CURRENT_USER\\Environment]\n"PATH"="c:\\bin"' >> ./tmp.reg
 WINEARCH=win32 WINEPREFIX=~/$WINEDIRNAME wine regedit ./tmp.reg
 
 # do not show GUI crash dialogs
 rm ./tmp.reg
-printf '[HKEY_CURRENT_USER\Software\Wine\WineDbg]\n"ShowCrashDialog"=dword:00000000' >> ./tmp.reg
+printf '[HKEY_CURRENT_USER\\Software\\Wine\\WineDbg]\n"ShowCrashDialog"=dword:00000000' >> ./tmp.reg
 WINEARCH=win32 WINEPREFIX=~/$WINEDIRNAME wine regedit ./tmp.reg
 rm ./tmp.reg