advpack: RegQueryValueExW() wants bytes, not chars.

Signed-off-by: Serge Gautherie <winehq-git_serge_180711@gautherie.fr>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Serge Gautherie 2020-05-28 04:30:19 +02:00 committed by Alexandre Julliard
parent 032190ac91
commit a359e02666
1 changed files with 1 additions and 1 deletions

View File

@ -907,7 +907,7 @@ HRESULT WINAPI UserInstStubWrapperW(HWND hWnd, HINSTANCE hInstance,
{
HKEY setup, guid;
WCHAR stub[MAX_PATH];
DWORD size = MAX_PATH;
DWORD size = sizeof(stub);
HRESULT hr = S_OK;
BOOL res;