mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-14 20:28:26 +00:00
advapi32: RegGetValueW() must return the required buffer size in bytes, not WCHARs.
This commit is contained in:
parent
c47c6483aa
commit
d9a06b236a
|
@ -1504,7 +1504,7 @@ LSTATUS WINAPI RegGetValueW( HKEY hKey, LPCWSTR pszSubKey, LPCWSTR pszValue,
|
|||
if (dwType == REG_EXPAND_SZ)
|
||||
{
|
||||
cbData = ExpandEnvironmentStringsW(pvBuf, pvData,
|
||||
pcbData ? *pcbData : 0);
|
||||
pcbData ? *pcbData : 0) * sizeof(WCHAR);
|
||||
dwType = REG_SZ;
|
||||
if(pvData && pcbData && cbData > *pcbData)
|
||||
ret = ERROR_MORE_DATA;
|
||||
|
|
Loading…
Reference in a new issue