Commit a0f88f7a authored by Mike McCormack's avatar Mike McCormack Committed by Alexandre Julliard

MSI: Improve the MsiGetMode stub a little.

parent 188365e2
...@@ -449,8 +449,31 @@ UINT WINAPI MsiSetTargetPathW(MSIHANDLE hInstall, LPCWSTR szFolder, ...@@ -449,8 +449,31 @@ UINT WINAPI MsiSetTargetPathW(MSIHANDLE hInstall, LPCWSTR szFolder,
BOOL WINAPI MsiGetMode(MSIHANDLE hInstall, MSIRUNMODE iRunMode) BOOL WINAPI MsiGetMode(MSIHANDLE hInstall, MSIRUNMODE iRunMode)
{ {
FIXME("STUB (iRunMode=%i)\n",iRunMode); BOOL r = FALSE;
return TRUE;
switch (iRunMode)
{
case MSIRUNMODE_WINDOWS9X:
if (GetVersion() & 0x80000000)
r = TRUE;
break;
case MSIRUNMODE_RESERVED11:
case MSIRUNMODE_RESERVED14:
case MSIRUNMODE_RESERVED15:
break;
case MSIRUNMODE_SCHEDULED:
case MSIRUNMODE_ROLLBACK:
case MSIRUNMODE_COMMIT:
break;
default:
FIXME("%ld %d\n", hInstall, iRunMode);
r = TRUE;
}
return r;
} }
/*********************************************************************** /***********************************************************************
......
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