rstrtmgr: Fake API implementation by returning success.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=47626
Signed-off-by: Roman Pišl <rpisl@seznam.cz>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Roman Pišl 2019-10-27 11:16:47 +01:00 committed by Alexandre Julliard
parent a5d441c19f
commit 91570a55c0
1 changed files with 12 additions and 6 deletions

View File

@ -54,7 +54,11 @@ DWORD WINAPI RmGetList(DWORD dwSessionHandle, UINT *pnProcInfoNeeded, UINT *pnPr
RM_PROCESS_INFO *rgAffectedApps[], LPDWORD lpdwRebootReasons)
{
FIXME("%d, %p, %p, %p, %p stub!\n", dwSessionHandle, pnProcInfoNeeded, pnProcInfo, rgAffectedApps, lpdwRebootReasons);
return ERROR_CALL_NOT_IMPLEMENTED;
if (pnProcInfoNeeded)
*pnProcInfoNeeded = 0;
if (pnProcInfo)
*pnProcInfo = 0;
return ERROR_SUCCESS;
}
/***********************************************************************
@ -68,7 +72,7 @@ DWORD WINAPI RmRegisterResources(DWORD dwSessionHandle, UINT nFiles, LPCWSTR rgs
{
FIXME("%d, %d, %p, %d, %p, %d, %p stub!\n", dwSessionHandle, nFiles, rgsFilenames,
nApplications, rgApplications, nServices, rgsServiceNames);
return ERROR_CALL_NOT_IMPLEMENTED;
return ERROR_SUCCESS;
}
/***********************************************************************
@ -79,7 +83,9 @@ DWORD WINAPI RmRegisterResources(DWORD dwSessionHandle, UINT nFiles, LPCWSTR rgs
DWORD WINAPI RmStartSession(DWORD *sessionhandle, DWORD flags, WCHAR sessionkey[])
{
FIXME("%p, %d, %p stub!\n", sessionhandle, flags, sessionkey);
return ERROR_CALL_NOT_IMPLEMENTED;
if (sessionhandle)
*sessionhandle = 0xdeadbeef;
return ERROR_SUCCESS;
}
/***********************************************************************
@ -88,7 +94,7 @@ DWORD WINAPI RmStartSession(DWORD *sessionhandle, DWORD flags, WCHAR sessionkey[
DWORD WINAPI RmRestart(DWORD handle, DWORD flags, RM_WRITE_STATUS_CALLBACK status)
{
FIXME("%u, 0x%08x, %p stub!\n", handle, flags, status);
return ERROR_CALL_NOT_IMPLEMENTED;
return ERROR_SUCCESS;
}
/***********************************************************************
@ -97,7 +103,7 @@ DWORD WINAPI RmRestart(DWORD handle, DWORD flags, RM_WRITE_STATUS_CALLBACK statu
DWORD WINAPI RmEndSession(DWORD handle)
{
FIXME("%u stub!\n", handle);
return ERROR_CALL_NOT_IMPLEMENTED;
return ERROR_SUCCESS;
}
/***********************************************************************
@ -106,5 +112,5 @@ DWORD WINAPI RmEndSession(DWORD handle)
DWORD WINAPI RmShutdown(DWORD handle, ULONG flags, RM_WRITE_STATUS_CALLBACK status)
{
FIXME("%u, 0x%08x, %p stub!\n", handle, flags, status);
return ERROR_CALL_NOT_IMPLEMENTED;
return ERROR_SUCCESS;
}