Commit cd1a13b0 authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

If using the default values, also set dwType to REG_SZ as our default

strings don't need to be expanded (found by Valgrind).
parent a971f548
......@@ -1089,6 +1089,7 @@ BOOL WINAPI SHGetSpecialFolderPathA (
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 @@ BOOL WINAPI SHGetSpecialFolderPathA (
strcpy(szPath, "C:\\"); /* FIXME ??? */
strcat(szPath, szDefaultPath);
}
dwType=REG_SZ;
RegSetValueExA(hKey,szValueName,0,REG_SZ,(LPBYTE)szPath,strlen(szPath)+1);
}
RegCloseKey(hKey);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment