fix autoupdate. hopefully for the last time...
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4827 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
7431c398d8
commit
172532ba6d
1 changed files with 3 additions and 3 deletions
|
@ -2536,13 +2536,13 @@ qboolean MyRegGetStringValue(HKEY base, char *keyname, char *valuename, void *da
|
|||
DWORD type = REG_NONE;
|
||||
if (RegOpenKeyEx(base, keyname, 0, KEY_READ, &subkey) == ERROR_SUCCESS)
|
||||
{
|
||||
DWORD dwlen;
|
||||
DWORD dwlen = datalen;
|
||||
result = ERROR_SUCCESS == RegQueryValueEx(subkey, valuename, NULL, &type, data, &dwlen);
|
||||
datalen = dwlen;
|
||||
RegCloseKey (subkey);
|
||||
}
|
||||
|
||||
if (type == REG_SZ || type == REG_EXPAND_SZ)
|
||||
if (result && (type == REG_SZ || type == REG_EXPAND_SZ))
|
||||
((char*)data)[datalen] = 0;
|
||||
else
|
||||
((char*)data)[0] = 0;
|
||||
|
@ -2555,7 +2555,7 @@ qboolean MyRegGetStringValueMultiSz(HKEY base, char *keyname, char *valuename, v
|
|||
DWORD type = REG_NONE;
|
||||
if (RegOpenKeyEx(base, keyname, 0, KEY_READ, &subkey) == ERROR_SUCCESS)
|
||||
{
|
||||
DWORD dwlen;
|
||||
DWORD dwlen = datalen;
|
||||
result = ERROR_SUCCESS == RegQueryValueEx(subkey, valuename, NULL, &type, data, &dwlen);
|
||||
datalen = dwlen;
|
||||
RegCloseKey (subkey);
|
||||
|
|
Loading…
Reference in a new issue