mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
[MSI] CORE-18707 hack. Allow MSI under ROS amd64 to continue when GetSystemWow64DirectoryW is called (#6887)
This commit is contained in:
parent
b631c5d3b1
commit
1cd08eee52
1 changed files with 22 additions and 0 deletions
|
@ -867,6 +867,17 @@ static UINT HANDLE_CustomType1( MSIPACKAGE *package, const WCHAR *source, const
|
|||
if (!(binary = get_temp_binary(package, source)))
|
||||
return ERROR_FUNCTION_FAILED;
|
||||
|
||||
#if defined(__REACTOS__) && defined(_M_AMD64)
|
||||
{
|
||||
DWORD arch;
|
||||
get_binary_type(binary->tmpfile, &arch);
|
||||
if (arch == SCS_32BIT_BINARY) {
|
||||
ERR("%s is a 32 bit custom action. Returning as ERROR_SUCCESS\n", debugstr_w(source));
|
||||
return ERROR_SUCCESS; // HACK: NO WOW64! return as executed though it's not true
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
TRACE("Calling function %s from %s\n", debugstr_w(target), debugstr_w(binary->tmpfile));
|
||||
|
||||
if (!(info = do_msidbCustomActionTypeDll( package, type, binary->tmpfile, target, action )))
|
||||
|
@ -975,6 +986,17 @@ static UINT HANDLE_CustomType17( MSIPACKAGE *package, const WCHAR *source, const
|
|||
return ERROR_FUNCTION_FAILED;
|
||||
}
|
||||
|
||||
#if defined(__REACTOS__) && defined(_M_AMD64)
|
||||
{
|
||||
DWORD arch;
|
||||
get_binary_type(file->TargetPath, &arch);
|
||||
if (arch == SCS_32BIT_BINARY) {
|
||||
ERR("%s is a 32 bit custom action. Returning as ERROR_SUCCESS\n", debugstr_w(source));
|
||||
return ERROR_SUCCESS; // HACK: NO WOW64! return as executed though it's not true
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
if (!(info = do_msidbCustomActionTypeDll( package, type, file->TargetPath, target, action )))
|
||||
return ERROR_FUNCTION_FAILED;
|
||||
return wait_thread_handle( info );
|
||||
|
|
Loading…
Reference in a new issue