Commit 00327065 authored by Hans Leidekker's avatar Hans Leidekker Committed by Alexandre Julliard

msi: Add stub implementations of MsiBeginTransaction and MsiEndTransaction.

parent 1435ba67
......@@ -3779,3 +3779,44 @@ UINT WINAPI MsiInstallMissingComponentW(LPCWSTR szProduct, LPCWSTR szComponent,
FIXME("(%s %s %d\n", debugstr_w(szProduct), debugstr_w(szComponent), eInstallState);
return ERROR_SUCCESS;
}
/***********************************************************************
* MsiBeginTransactionA [MSI.@]
*/
UINT WINAPI MsiBeginTransactionA( LPCSTR name, DWORD attrs, MSIHANDLE *id, HANDLE *event )
{
WCHAR *nameW;
UINT r;
FIXME("%s %u %p %p\n", debugstr_a(name), attrs, id, event);
nameW = strdupAtoW( name );
if (name && !nameW)
return ERROR_OUTOFMEMORY;
r = MsiBeginTransactionW( nameW, attrs, id, event );
msi_free( nameW );
return r;
}
/***********************************************************************
* MsiBeginTransactionW [MSI.@]
*/
UINT WINAPI MsiBeginTransactionW( LPCWSTR name, DWORD attrs, MSIHANDLE *id, HANDLE *event )
{
FIXME("%s %u %p %p\n", debugstr_w(name), attrs, id, event);
*id = (MSIHANDLE)0xdeadbeef;
*event = (HANDLE)0xdeadbeef;
return ERROR_SUCCESS;
}
/***********************************************************************
* MsiEndTransaction [MSI.@]
*/
UINT WINAPI MsiEndTransaction( DWORD state )
{
FIXME("%u\n", state);
return ERROR_SUCCESS;
}
......@@ -277,9 +277,9 @@
281 stdcall MsiSetExternalUIRecord(ptr long ptr ptr)
282 stub MsiGetPatchFileListA
283 stub MsiGetPatchFileListW
284 stub MsiBeginTransactionA
285 stub MsiBeginTransactionW
286 stub MsiEndTransaction
284 stdcall MsiBeginTransactionA(str long ptr ptr)
285 stdcall MsiBeginTransactionW(wstr long ptr ptr)
286 stdcall MsiEndTransaction(long)
287 stub MsiJoinTransaction
288 stub MsiSetOfflineContextW
289 stub MsiEnumComponentsExA
......
......@@ -663,6 +663,12 @@ UINT WINAPI MsiApplyMultiplePatchesA(LPCSTR, LPCSTR, LPCSTR);
UINT WINAPI MsiApplyMultiplePatchesW(LPCWSTR, LPCWSTR, LPCWSTR);
#define MsiApplyMultiplePatches WINELIB_NAME_AW(MsiApplyMultiplePatches)
UINT WINAPI MsiBeginTransactionA(LPCSTR, DWORD, MSIHANDLE *, HANDLE *);
UINT WINAPI MsiBeginTransactionW(LPCWSTR, DWORD, MSIHANDLE *, HANDLE *);
#define MsiBeginTransaction WINELIB_NAME_AW(MsiBeginTransaction)
UINT WINAPI MsiEndTransaction(DWORD);
/* Non Unicode */
UINT WINAPI MsiCloseHandle(MSIHANDLE);
UINT WINAPI MsiCloseAllHandles(void);
......
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