- Fix return value of RegQueryValueExA

svn path=/trunk/; revision=58626
This commit is contained in:
Johannes Anderwald 2013-03-31 07:11:35 +00:00
parent 17e1b04d16
commit 703257d67f

View file

@ -562,9 +562,7 @@ RegQueryValueExA(
rc = RegQueryValueExW(hKey, lpValueNameW, lpReserved, lpType, lpData, lpcbData);
if (lpValueNameW)
free(lpValueNameW);
if (rc != ERROR_SUCCESS)
return rc;
return ERROR_UNSUCCESSFUL;
return rc;
}
LONG WINAPI