Get/SetFastQueue16 should use HQUEUE16 handles.

This commit is contained in:
Alexandre Julliard 2002-10-19 17:20:44 +00:00
parent 6fa2ac693e
commit f3215eba4a
2 changed files with 6 additions and 6 deletions

View File

@ -197,7 +197,7 @@ SEGPTR WINAPI GetDOSEnvironment16(void);
HMODULE16 WINAPI GetExePtr(HANDLE16); HMODULE16 WINAPI GetExePtr(HANDLE16);
WORD WINAPI GetExeVersion16(void); WORD WINAPI GetExeVersion16(void);
WORD WINAPI GetExpWinVer16(HMODULE16); WORD WINAPI GetExpWinVer16(HMODULE16);
HANDLE WINAPI GetFastQueue16(void); HQUEUE16 WINAPI GetFastQueue16(void);
DWORD WINAPI GetHeapSpaces16(HMODULE16); DWORD WINAPI GetHeapSpaces16(HMODULE16);
INT16 WINAPI GetInstanceData16(HINSTANCE16,WORD,INT16); INT16 WINAPI GetInstanceData16(HINSTANCE16,WORD,INT16);
BOOL16 WINAPI GetModuleName16(HINSTANCE16,LPSTR,INT16); BOOL16 WINAPI GetModuleName16(HINSTANCE16,LPSTR,INT16);
@ -237,7 +237,7 @@ VOID WINAPI WIN32_OldYield16(void);
VOID WINAPI PostEvent16(HTASK16); VOID WINAPI PostEvent16(HTASK16);
WORD WINAPI PrestoChangoSelector16(WORD,WORD); WORD WINAPI PrestoChangoSelector16(WORD,WORD);
WORD WINAPI SelectorAccessRights16(WORD,WORD,WORD); WORD WINAPI SelectorAccessRights16(WORD,WORD,WORD);
void WINAPI SetFastQueue16(DWORD,HANDLE); void WINAPI SetFastQueue16(DWORD,HQUEUE16);
VOID WINAPI SetPriority16(HTASK16,INT16); VOID WINAPI SetPriority16(HTASK16,INT16);
FARPROC16 WINAPI SetResourceHandler16(HINSTANCE16,LPCSTR,FARPROC16); FARPROC16 WINAPI SetResourceHandler16(HINSTANCE16,LPCSTR,FARPROC16);
WORD WINAPI SetSelectorLimit16(WORD,DWORD); WORD WINAPI SetSelectorLimit16(WORD,DWORD);

View File

@ -1044,7 +1044,7 @@ HQUEUE16 WINAPI GetThreadQueue16( DWORD thread )
/*********************************************************************** /***********************************************************************
* SetFastQueue (KERNEL.624) * SetFastQueue (KERNEL.624)
*/ */
VOID WINAPI SetFastQueue16( DWORD thread, HANDLE hQueue ) VOID WINAPI SetFastQueue16( DWORD thread, HQUEUE16 hQueue )
{ {
TEB *teb = NULL; TEB *teb = NULL;
if ( !thread ) if ( !thread )
@ -1054,15 +1054,15 @@ VOID WINAPI SetFastQueue16( DWORD thread, HANDLE hQueue )
else if ( IsTask16( (HTASK16)thread ) ) else if ( IsTask16( (HTASK16)thread ) )
teb = (TASK_GetPtr( (HANDLE16)thread ))->teb; teb = (TASK_GetPtr( (HANDLE16)thread ))->teb;
if ( teb ) teb->queue = (HQUEUE16) hQueue; if ( teb ) teb->queue = hQueue;
} }
/*********************************************************************** /***********************************************************************
* GetFastQueue (KERNEL.625) * 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" ); if (!ret) FIXME("(): should initialize thread-local queue, expect failure!\n" );
return ret; return ret;