Commit 27eb7adb authored by Aric Stewart's avatar Aric Stewart Committed by Alexandre Julliard

Add the GUID for Patch files so that they can be opened as well. Looks

like the database structure is pretty much the same.
parent c682fcc3
......@@ -48,6 +48,8 @@ WINE_DEFAULT_DEBUG_CHANNEL(msi);
DEFINE_GUID( CLSID_MsiDatabase, 0x000c1084, 0x0000, 0x0000,
0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46);
DEFINE_GUID( CLSID_MsiPatch, 0x000c1086, 0x0000, 0x0000,
0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46);
/*
* .MSI file format
......@@ -132,7 +134,8 @@ UINT MSI_OpenDatabaseW(LPCWSTR szDBPath, LPCWSTR szPersist, MSIDATABASE **pdb)
goto end;
}
if( memcmp( &stat.clsid, &CLSID_MsiDatabase, sizeof (GUID) ) )
if(( memcmp( &stat.clsid, &CLSID_MsiDatabase, sizeof (GUID) ) )
&& ( memcmp( &stat.clsid, &CLSID_MsiPatch, sizeof (GUID) ) ))
{
ERR("storage GUID is not a MSI database GUID %s\n",
debugstr_guid(&stat.clsid) );
......
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