Commit deb4f970 authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

msi: Check return value of GetBinaryType().

parent b8c27cca
......@@ -585,6 +585,7 @@ static DWORD WINAPI DllThread( LPVOID arg )
void *cookie;
BOOL wow64;
DWORD arch;
BOOL ret;
DWORD rc;
TRACE("custom action (%x) started\n", GetCurrentThreadId() );
......@@ -607,9 +608,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));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment