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

like the database structure is pretty much the same.
This commit is contained in:
Aric Stewart 2005-09-06 09:24:48 +00:00 committed by Alexandre Julliard
parent c682fcc3f4
commit 27eb7adb92
1 changed files with 4 additions and 1 deletions

View File

@ -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) );