diff --git a/desmume/src/windows/main.c b/desmume/src/windows/main.c index ad8b71458..9c25dcc9a 100644 --- a/desmume/src/windows/main.c +++ b/desmume/src/windows/main.c @@ -382,7 +382,7 @@ DWORD WINAPI run( LPVOID lpParameter) else { if (framestoskip < 1) - framestoskip = frameskiprate + 1; + framestoskip += frameskiprate; } CWindow_RefreshALL(); @@ -500,7 +500,7 @@ int WINAPI WinMain (HINSTANCE hThisInstance, if (SPU_ChangeSoundCore(sndcoretype, sndbuffersize) != 0) { MessageBox(hwnd,"Unable to initialize DirectSound","Error",MB_OK); - return messages.wParam; + return -1; } sndvolume = GetPrivateProfileInt("Sound","Volume",100, IniName);