From: "Roman Pišl" Subject: [PATCH 2/3] rstrtmgr: Fake API implementation by returning success. Message-Id: <20191027101648.25330-3-rpisl@seznam.cz> Date: Sun, 27 Oct 2019 11:16:47 +0100 In-Reply-To: <20191027101648.25330-1-rpisl@seznam.cz> References: <20191027101648.25330-1-rpisl@seznam.cz> Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=47626 Signed-off-by: Roman Pišl --- dlls/rstrtmgr/main.c | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/dlls/rstrtmgr/main.c b/dlls/rstrtmgr/main.c index 0aa8094eea..dfe53359d9 100644 --- a/dlls/rstrtmgr/main.c +++ b/dlls/rstrtmgr/main.c @@ -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; } -- 2.20.1