diff --git a/dlls/winmm/mmsystem.c b/dlls/winmm/mmsystem.c index 7d2c53e0656..c1583d97f04 100644 --- a/dlls/winmm/mmsystem.c +++ b/dlls/winmm/mmsystem.c @@ -22,7 +22,6 @@ #include "winbase.h" #include "wingdi.h" -#include "wine/winbase16.h" #include "wine/winuser16.h" #include "heap.h" #include "winemm.h" @@ -4967,7 +4966,7 @@ void WINAPI mmTaskYield16(void) MSG msg; if (PeekMessageA(&msg, 0, 0, 0, 0)) { - Yield16(); + K32WOWYield16(); } } @@ -5248,12 +5247,12 @@ void WINAPI WINE_mmThreadEntryPoint(DWORD _pmt) TRACE("[30-%08x]\n", lpMMThd->hThread); while (lpMMThd->dwCounter) { Sleep(1); - /* Yield16();*/ + /* K32WOWYield16();*/ } TRACE("[XX-%08x]\n", lpMMThd->hThread); /* paranoia */ lpMMThd->dwSignature = WINE_MMTHREAD_DELETED; - /* close lpMMThread->hVxD directio */ + /* close lpMMThread->hVxD directIO */ if (lpMMThd->hEvent) CloseHandle(lpMMThd->hEvent); GlobalFree16(hndl); diff --git a/include/wine/winbase16.h b/include/wine/winbase16.h index 172f407310e..8a00d42e1c1 100644 --- a/include/wine/winbase16.h +++ b/include/wine/winbase16.h @@ -325,7 +325,9 @@ DWORD WINAPI SizeofResource16(HMODULE16,HRSRC16); void WINAPI UnlockSegment16(HGLOBAL16); BOOL16 WINAPI WritePrivateProfileString16(LPCSTR,LPCSTR,LPCSTR,LPCSTR); BOOL16 WINAPI WriteProfileString16(LPCSTR,LPCSTR,LPCSTR); +/* Yield16 will only be available from kernel module, use K32WOWYield instead */ VOID WINAPI Yield16(void); +VOID WINAPI K32WOWYield16(void); SEGPTR WINAPI lstrcat16(SEGPTR,LPCSTR); SEGPTR WINAPI lstrcatn16(SEGPTR,LPCSTR,INT16); SEGPTR WINAPI lstrcpy16(SEGPTR,LPCSTR); diff --git a/windows/message.c b/windows/message.c index 150201a1881..45822033f1c 100644 --- a/windows/message.c +++ b/windows/message.c @@ -2020,7 +2020,7 @@ DWORD WINAPI MsgWaitForMultipleObjects( DWORD nCount, HANDLE *pHandles, /* * Then, let the 16 bit scheduler do it's thing. */ - Yield16(); + K32WOWYield16(); /* * If a message matching the wait mask has arrived, return. diff --git a/windows/queue.c b/windows/queue.c index cdd3d85aefc..39563f2b951 100644 --- a/windows/queue.c +++ b/windows/queue.c @@ -745,7 +745,7 @@ int QUEUE_WaitBits( WORD bits, DWORD timeout ) QUEUE_Unlock( queue ); return 0; /* exit with timeout */ } - Yield16(); + K32WOWYield16(); } } } diff --git a/windows/winhelp.c b/windows/winhelp.c index 012d4fd1c44..ff690f8ad26 100644 --- a/windows/winhelp.c +++ b/windows/winhelp.c @@ -44,7 +44,7 @@ BOOL16 WINAPI WinHelp16( HWND16 hWnd, LPCSTR lpHelpFile, UINT16 wCommand, /* try to start the 16-bit winhelp */ if (WinExec( "winhelp.exe -x", SW_SHOWNORMAL ) >= 32) { - Yield16(); + K32WOWYield16(); ret = WinHelpA( hWnd, lpHelpFile, wCommand, (DWORD)MapSL(dwData) ); } }