kernel32: add a stub for UnregisterApplicationRestart
Austin English
austinenglish at gmail.com
Tue Jun 17 18:24:48 CDT 2014
For https://bugs.winehq.org/show_bug.cgi?id=34215
--
-Austin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20140617/c45f5b1b/attachment.html>
-------------- next part --------------
diff --git a/dlls/kernel32/kernel32.spec b/dlls/kernel32/kernel32.spec
index a6c6b29..8aa5d21 100644
--- a/dlls/kernel32/kernel32.spec
+++ b/dlls/kernel32/kernel32.spec
@@ -1237,6 +1237,7 @@
@ stdcall UnlockFile(long long long long long)
@ stdcall UnlockFileEx(long long long long ptr)
@ stdcall UnmapViewOfFile(ptr)
+@ stdcall UnregisterApplicationRestart()
# @ stub UnregisterConsoleIME
@ stdcall UnregisterWait(long)
@ stdcall UnregisterWaitEx(long long)
diff --git a/dlls/kernel32/process.c b/dlls/kernel32/process.c
index 0b70a55..2566ac4 100644
--- a/dlls/kernel32/process.c
+++ b/dlls/kernel32/process.c
@@ -3956,3 +3956,13 @@ VOID WINAPI FlushProcessWriteBuffers(void)
if (!once++)
FIXME(": stub\n");
}
+
+/***********************************************************************
+ * UnregisterApplicationRestart (KERNEL32.@)
+ */
+HRESULT WINAPI UnregisterApplicationRestart(void)
+{
+ FIXME(": stub\n");
+ SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+ return S_OK;
+}
diff --git a/include/winbase.h b/include/winbase.h
index 7432983..a269833 100644
--- a/include/winbase.h
+++ b/include/winbase.h
@@ -2411,6 +2411,7 @@ WINBASEAPI BOOL WINAPI UnlockFile(HANDLE,DWORD,DWORD,DWORD,DWORD);
WINBASEAPI BOOL WINAPI UnlockFileEx(HANDLE,DWORD,DWORD,DWORD,LPOVERLAPPED);
#define UnlockSegment(handle) GlobalUnfix((HANDLE)(handle))
WINBASEAPI BOOL WINAPI UnmapViewOfFile(LPCVOID);
+WINBASEAPI HRESULT WINAPI UnregisterApplicationRestart(void);
WINBASEAPI BOOL WINAPI UnregisterWait(HANDLE);
WINBASEAPI BOOL WINAPI UnregisterWaitEx(HANDLE,HANDLE);
WINBASEAPI BOOL WINAPI UpdateResourceA(HANDLE,LPCSTR,LPCSTR,WORD,LPVOID,DWORD);
More information about the wine-patches
mailing list