mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-24 02:30:46 +00:00
- fixed compile errors.
This commit is contained in:
parent
e119dc841b
commit
9b88d41169
2 changed files with 4 additions and 3 deletions
|
@ -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);
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue