mirror of
https://gitlab.winehq.org/wine/wine.git
synced 2024-11-19 17:06:04 -07:00
msi: Make MsiGetSummaryInformationW open database as direct instead of transacted.
This fixes MsiSummaryInfoPersist not saving data to disk Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=55859
This commit is contained in:
parent
2b78570297
commit
30c7900c40
Notes:
Alexandre Julliard
2024-11-19 23:21:34 +01:00
Approved-by: Hans Leidekker (@hans) Approved-by: Alexandre Julliard (@julliard) Merge-Request: https://gitlab.winehq.org/wine/wine/merge_requests/6827
2 changed files with 1 additions and 2 deletions
|
@ -515,7 +515,7 @@ UINT WINAPI MsiGetSummaryInformationW( MSIHANDLE hDatabase, const WCHAR *szDatab
|
|||
|
||||
if( szDatabase && szDatabase[0] )
|
||||
{
|
||||
LPCWSTR persist = uiUpdateCount ? MSIDBOPEN_TRANSACT : MSIDBOPEN_READONLY;
|
||||
LPCWSTR persist = uiUpdateCount ? MSIDBOPEN_DIRECT : MSIDBOPEN_READONLY;
|
||||
|
||||
ret = MSI_OpenDatabaseW( szDatabase, persist, &db );
|
||||
if( ret != ERROR_SUCCESS )
|
||||
|
|
|
@ -415,7 +415,6 @@ static void test_suminfo(void)
|
|||
strcpy(buf,"x");
|
||||
r = MsiSummaryInfoGetPropertyA(hsuminfo, PID_AUTHOR, &type, NULL, NULL, buf, &sz);
|
||||
ok(r == ERROR_SUCCESS, "MsiSummaryInfoGetPropertyA wrong error\n");
|
||||
todo_wine
|
||||
ok(!strcmp(buf,"Fabian3"), "buffer was wrong: %s\n", buf);
|
||||
|
||||
r = MsiCloseHandle(hsuminfo);
|
||||
|
|
Loading…
Reference in a new issue