If using the default values, also set dwType to REG_SZ as our default
strings don't need to be expanded (found by Valgrind).
diff --git a/dlls/shell32/shellpath.c b/dlls/shell32/shellpath.c
index b1e726c..c4e0507 100644
--- a/dlls/shell32/shellpath.c
+++ b/dlls/shell32/shellpath.c
@@ -1089,6 +1089,7 @@
strcpy(szPath, "C:\\"); /* FIXME ??? */
strcat(szPath, szDefaultPath);
}
+ dwType=REG_SZ;
RegSetValueExA(hKey,szValueName,0,REG_SZ,(LPBYTE)szPath,strlen(szPath)+1);
}
}
@@ -1125,6 +1126,7 @@
strcpy(szPath, "C:\\"); /* FIXME ??? */
strcat(szPath, szDefaultPath);
}
+ dwType=REG_SZ;
RegSetValueExA(hKey,szValueName,0,REG_SZ,(LPBYTE)szPath,strlen(szPath)+1);
}
RegCloseKey(hKey);