win: Add a timeout for the startblit function
This commit is contained in:
@@ -847,7 +847,10 @@ LPARAM win_get_string(int id)
|
||||
void /* plat_ */
|
||||
startblit(void)
|
||||
{
|
||||
WaitForSingleObject(ghMutex, INFINITE);
|
||||
DWORD ret = WaitForSingleObject(ghMutex, 1000);
|
||||
|
||||
if(ret == WAIT_TIMEOUT)
|
||||
fatal("The blit mutex has timed out.");
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user