mirror of
https://github.com/reactos/reactos.git
synced 2025-01-01 03:54:02 +00:00
[WINESYNC] msi: Check return value of GetBinaryType().
Signed-off-by: Zebediah Figura <z.figura12@gmail.com> Signed-off-by: Hans Leidekker <hans@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org> wine commit id deb4f970009d6fd85a61d3183877e67e1ccf66fe by Zebediah Figura <z.figura12@gmail.com>
This commit is contained in:
parent
3ec0ea99c6
commit
8baf528d3f
1 changed files with 3 additions and 2 deletions
|
@ -586,6 +586,7 @@ static DWORD WINAPI DllThread( LPVOID arg )
|
|||
void *cookie;
|
||||
BOOL wow64;
|
||||
DWORD arch;
|
||||
BOOL ret;
|
||||
DWORD rc;
|
||||
|
||||
TRACE("custom action (%x) started\n", GetCurrentThreadId() );
|
||||
|
@ -608,9 +609,9 @@ static DWORD WINAPI DllThread( LPVOID arg )
|
|||
}
|
||||
|
||||
info = find_action_by_guid(guid);
|
||||
GetBinaryTypeW(info->source, &arch);
|
||||
ret = GetBinaryTypeW(info->source, &arch);
|
||||
|
||||
if (sizeof(void *) == 8 && arch == SCS_32BIT_BINARY)
|
||||
if (sizeof(void *) == 8 && ret && arch == SCS_32BIT_BINARY)
|
||||
GetSystemWow64DirectoryW(buffer, MAX_PATH - sizeof(msiexecW)/sizeof(WCHAR));
|
||||
else
|
||||
GetSystemDirectoryW(buffer, MAX_PATH - sizeof(msiexecW)/sizeof(WCHAR));
|
||||
|
|
Loading…
Reference in a new issue