Fix usage of the first parameter for TranslateAccelerator: this should be the handle...
[reactos.git] / reactos / base / applications / sndrec32 / sndrec32.cpp
index d586f64..18e23d1 100644 (file)
@@ -211,7 +211,7 @@ _tWinMain(HINSTANCE hInstance,
     /* Starts main loop */
     while (GetMessage(&msg, NULL, 0, 0))
     {
-        if (!TranslateAccelerator(msg.hwnd, hAccelTable, &msg))
+        if (!TranslateAccelerator(main_win, hAccelTable, &msg))
         {
             TranslateMessage(&msg);
             DispatchMessage(&msg);