- fixed compile errors.

This commit is contained in:
Christoph Oelckers 2020-01-28 21:44:39 +01:00
parent e119dc841b
commit 9b88d41169
2 changed files with 4 additions and 3 deletions

View file

@ -129,7 +129,7 @@ void G_AddExternalSearchPaths(TArray<FString> &searchpaths)
{
// 3D Realms Anthology
char buf[PATH_MAX];
DWORD bufsize = sizeof(buf);
size_t bufsize = sizeof(buf);
if (I_ReadRegistryValue(entry.regPath, entry.regKey, buf, &bufsize))
{
if (!entry.subpaths) AddSearchPath(searchpaths, buf);

View file

@ -1311,7 +1311,9 @@ int I_ReadRegistryValue(char const * const SubKey, char const * const Value, cha
if (keygood != ERROR_SUCCESS)
continue;
LONG retval = SHGetValueA(hkey, SubKey, Value, NULL, Output, OutputSize);
DWORD os = 0;
LONG retval = SHGetValueA(hkey, SubKey, Value, NULL, Output, &os);
*OutputSize = os;
RegCloseKey(hkey);
@ -1321,4 +1323,3 @@ int I_ReadRegistryValue(char const * const SubKey, char const * const Value, cha
return 0;
}
#endif