kernel32: Add a stub implementation of GetThreadIOPendingFlag.
Hans Leidekker
hans at codeweavers.com
Mon Jan 10 02:42:41 CST 2011
Word 2010 calls this function.
---
dlls/kernel32/kernel32.spec | 2 +-
dlls/kernel32/thread.c | 10 ++++++++++
include/winbase.h | 1 +
3 files changed, 12 insertions(+), 1 deletions(-)
diff --git a/dlls/kernel32/kernel32.spec b/dlls/kernel32/kernel32.spec
index 98e0fa0..c2f7bc2 100644
--- a/dlls/kernel32/kernel32.spec
+++ b/dlls/kernel32/kernel32.spec
@@ -649,7 +649,7 @@
@ stdcall GetThreadContext(long ptr)
@ stdcall GetThreadErrorMode()
@ stdcall GetThreadId(ptr)
-# @ stub GetThreadIOPendingFlag
+@ stdcall GetThreadIOPendingFlag(long ptr)
@ stdcall GetThreadLocale()
@ stdcall GetThreadPriority(long)
@ stdcall GetThreadPriorityBoost(long ptr)
diff --git a/dlls/kernel32/thread.c b/dlls/kernel32/thread.c
index 691ef02..bddf37d 100644
--- a/dlls/kernel32/thread.c
+++ b/dlls/kernel32/thread.c
@@ -796,3 +796,13 @@ LANGID WINAPI GetThreadUILanguage( void )
FIXME(": stub, returning default language.\n");
return lang;
}
+
+/***********************************************************************
+ * GetThreadIOPendingFlag (KERNEL32.@)
+ */
+BOOL WINAPI GetThreadIOPendingFlag( HANDLE thread, PBOOL io_pending )
+{
+ FIXME("%p, %p\n", thread, io_pending);
+ *io_pending = FALSE;
+ return TRUE;
+}
diff --git a/include/winbase.h b/include/winbase.h
index a233a0a..1222bec 100644
--- a/include/winbase.h
+++ b/include/winbase.h
@@ -1775,6 +1775,7 @@ WINBASEAPI DWORD WINAPI GetTempPathA(DWORD,LPSTR);
WINBASEAPI DWORD WINAPI GetTempPathW(DWORD,LPWSTR);
#define GetTempPath WINELIB_NAME_AW(GetTempPath)
WINBASEAPI DWORD WINAPI GetThreadId(HANDLE);
+WINBASEAPI BOOL WINAPI GetThreadIOPendingFlag(HANDLE,PBOOL);
WINBASEAPI DWORD WINAPI GetTickCount(void);
WINBASEAPI ULONGLONG WINAPI GetTickCount64(void);
WINBASEAPI DWORD WINAPI GetTimeZoneInformation(LPTIME_ZONE_INFORMATION);
--
1.7.1
More information about the wine-patches
mailing list