diff --git a/uisimulator/win32/uisw32.c b/uisimulator/win32/uisw32.c index fb15a856b7..d098c6ef24 100644 --- a/uisimulator/win32/uisw32.c +++ b/uisimulator/win32/uisw32.c @@ -325,7 +325,7 @@ int WINAPI WinMain ( hSoundThread = CreateThread (NULL, 0, (LPTHREAD_START_ROUTINE) sound_playback_thread, NULL, 0, &dwThreadID); - if (hGUIThread == NULL) + if (hSoundThread == NULL) MessageBox (NULL, "Error creating sound thread!", "Warning", MB_OK); #endif