[pkg-wine-party] [wine] 252/351: kernel32: Add a stub for CancelSynchronousIo.
Michael Gilbert
mgilbert at moszumanska.debian.org
Wed Oct 21 03:29:35 UTC 2015
This is an automated email from the git hooks/post-receive script.
mgilbert pushed a commit to branch upstream
in repository wine.
commit a26a6b877d64effe947b29854d1c3492a5c27e66
Author: Austin English <austinenglish at gmail.com>
Date: Mon Oct 12 10:29:27 2015 -0500
kernel32: Add a stub for CancelSynchronousIo.
Signed-off-by: Austin English <austinenglish at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
.../api-ms-win-core-io-l1-1-1.spec | 2 +-
dlls/kernel32/file.c | 19 +++++++++++++++++++
dlls/kernel32/kernel32.spec | 2 +-
include/winbase.h | 1 +
4 files changed, 22 insertions(+), 2 deletions(-)
diff --git a/dlls/api-ms-win-core-io-l1-1-1/api-ms-win-core-io-l1-1-1.spec b/dlls/api-ms-win-core-io-l1-1-1/api-ms-win-core-io-l1-1-1.spec
index e05728e..73aae1a 100644
--- a/dlls/api-ms-win-core-io-l1-1-1/api-ms-win-core-io-l1-1-1.spec
+++ b/dlls/api-ms-win-core-io-l1-1-1/api-ms-win-core-io-l1-1-1.spec
@@ -1,6 +1,6 @@
@ stdcall CancelIo(long) kernel32.CancelIo
@ stdcall CancelIoEx(long ptr) kernel32.CancelIoEx
-@ stub CancelSynchronousIo
+@ stdcall CancelSynchronousIo(long) kernel32.CancelSynchronousIo
@ stdcall CreateIoCompletionPort(long long long long) kernel32.CreateIoCompletionPort
@ stdcall DeviceIoControl(long long ptr long ptr long ptr ptr) kernel32.DeviceIoControl
@ stdcall GetOverlappedResult(long ptr ptr long) kernel32.GetOverlappedResult
diff --git a/dlls/kernel32/file.c b/dlls/kernel32/file.c
index e43829e..ee43b10 100644
--- a/dlls/kernel32/file.c
+++ b/dlls/kernel32/file.c
@@ -686,6 +686,25 @@ BOOL WINAPI CancelIo(HANDLE handle)
}
/***********************************************************************
+ * CancelSynchronousIo (KERNEL32.@)
+ *
+ * Marks pending synchronous I/O operations issued by the specified thread as cancelled
+ *
+ * PARAMS
+ * handle [I] handle to the thread whose I/O operations should be cancelled
+ *
+ * RETURNS
+ * Success: TRUE.
+ * Failure: FALSE, check GetLastError().
+ */
+BOOL WINAPI CancelSynchronousIo(HANDLE thread)
+{
+ FIXME("(%p): stub\n", thread);
+ SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+ return FALSE;
+}
+
+/***********************************************************************
* _hread (KERNEL32.@)
*/
LONG WINAPI _hread( HFILE hFile, LPVOID buffer, LONG count)
diff --git a/dlls/kernel32/kernel32.spec b/dlls/kernel32/kernel32.spec
index e0cb154..dfc305b 100644
--- a/dlls/kernel32/kernel32.spec
+++ b/dlls/kernel32/kernel32.spec
@@ -210,7 +210,7 @@
@ stub CancelDeviceWakeupRequest
@ stdcall CancelIo(long)
@ stdcall CancelIoEx(long ptr)
-# @ stub CancelSynchronousIo
+@ stdcall CancelSynchronousIo(long)
# @ stub CancelThreadpoolIo
@ stdcall CancelTimerQueueTimer(ptr ptr)
@ stdcall CancelWaitableTimer(long)
diff --git a/include/winbase.h b/include/winbase.h
index dd320c2..25bc593 100644
--- a/include/winbase.h
+++ b/include/winbase.h
@@ -1694,6 +1694,7 @@ WINBASEAPI BOOL WINAPI CallNamedPipeW(LPCWSTR,LPVOID,DWORD,LPVOID,DWORD,L
#define CallNamedPipe WINELIB_NAME_AW(CallNamedPipe)
WINBASEAPI BOOL WINAPI CancelIo(HANDLE);
WINBASEAPI BOOL WINAPI CancelIoEx(HANDLE,LPOVERLAPPED);
+WINBASEAPI BOOL WINAPI CancelSynchronousIo(HANDLE);
WINBASEAPI BOOL WINAPI CancelTimerQueueTimer(HANDLE,HANDLE);
WINBASEAPI BOOL WINAPI CancelWaitableTimer(HANDLE);
WINBASEAPI BOOL WINAPI CheckNameLegalDOS8Dot3A(const char*,char*,DWORD,BOOL*,BOOL*);
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wine/wine.git
More information about the pkg-wine-party
mailing list