From f3215eba4ad819592f1782e02c453e058b0e40a9 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Sat, 19 Oct 2002 17:20:44 +0000 Subject: [PATCH] Get/SetFastQueue16 should use HQUEUE16 handles. --- include/wine/winbase16.h | 4 ++-- loader/task.c | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/include/wine/winbase16.h b/include/wine/winbase16.h index 7398679033e..6124b5646c3 100644 --- a/include/wine/winbase16.h +++ b/include/wine/winbase16.h @@ -197,7 +197,7 @@ SEGPTR WINAPI GetDOSEnvironment16(void); HMODULE16 WINAPI GetExePtr(HANDLE16); WORD WINAPI GetExeVersion16(void); WORD WINAPI GetExpWinVer16(HMODULE16); -HANDLE WINAPI GetFastQueue16(void); +HQUEUE16 WINAPI GetFastQueue16(void); DWORD WINAPI GetHeapSpaces16(HMODULE16); INT16 WINAPI GetInstanceData16(HINSTANCE16,WORD,INT16); BOOL16 WINAPI GetModuleName16(HINSTANCE16,LPSTR,INT16); @@ -237,7 +237,7 @@ VOID WINAPI WIN32_OldYield16(void); VOID WINAPI PostEvent16(HTASK16); WORD WINAPI PrestoChangoSelector16(WORD,WORD); WORD WINAPI SelectorAccessRights16(WORD,WORD,WORD); -void WINAPI SetFastQueue16(DWORD,HANDLE); +void WINAPI SetFastQueue16(DWORD,HQUEUE16); VOID WINAPI SetPriority16(HTASK16,INT16); FARPROC16 WINAPI SetResourceHandler16(HINSTANCE16,LPCSTR,FARPROC16); WORD WINAPI SetSelectorLimit16(WORD,DWORD); diff --git a/loader/task.c b/loader/task.c index b56692f2b83..ef0d952e937 100644 --- a/loader/task.c +++ b/loader/task.c @@ -1044,7 +1044,7 @@ HQUEUE16 WINAPI GetThreadQueue16( DWORD thread ) /*********************************************************************** * SetFastQueue (KERNEL.624) */ -VOID WINAPI SetFastQueue16( DWORD thread, HANDLE hQueue ) +VOID WINAPI SetFastQueue16( DWORD thread, HQUEUE16 hQueue ) { TEB *teb = NULL; if ( !thread ) @@ -1054,15 +1054,15 @@ VOID WINAPI SetFastQueue16( DWORD thread, HANDLE hQueue ) else if ( IsTask16( (HTASK16)thread ) ) teb = (TASK_GetPtr( (HANDLE16)thread ))->teb; - if ( teb ) teb->queue = (HQUEUE16) hQueue; + if ( teb ) teb->queue = hQueue; } /*********************************************************************** * GetFastQueue (KERNEL.625) */ -HANDLE WINAPI GetFastQueue16( void ) +HQUEUE16 WINAPI GetFastQueue16( void ) { - HANDLE ret = (HANDLE)NtCurrentTeb()->queue; + HQUEUE16 ret = NtCurrentTeb()->queue; if (!ret) FIXME("(): should initialize thread-local queue, expect failure!\n" ); return ret;