Changeset 61920 in vbox for trunk/src/VBox/HostDrivers/VBoxUSB/win/lib
- Timestamp:
- Jun 28, 2016 7:57:46 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/VBoxUSB/win/lib/VBoxUsbLib-win.cpp
r60277 r61920 1229 1229 } 1230 1230 break; 1231 case WM_DESTROY: 1232 return 0; 1231 case WM_DESTROY: 1232 { 1233 PostQuitMessage(0); 1234 return 0; 1235 } 1233 1236 } 1234 1237 return DefWindowProc (hwnd, uMsg, wParam, lParam); … … 1283 1286 */ 1284 1287 MSG msg; 1285 while (GetMessage(&msg, NULL, 0, 0)) 1288 BOOL fRet; 1289 while ((fRet = GetMessage(&msg, NULL, 0, 0)) > 0) 1286 1290 { 1287 1291 TranslateMessage(&msg); 1288 1292 DispatchMessage(&msg); 1289 1293 } 1290 1291 /* 1292 * Clean up. 1293 */ 1294 DestroyWindow(g_VBoxUsbGlobal.hWnd); 1294 Assert(fRet >= 0); 1295 1295 } 1296 1296 … … 1554 1554 BOOL bRc; 1555 1555 #ifdef VBOX_USB_USE_DEVICE_NOTIFICATION 1556 bRc = PostMessage(g_VBoxUsbGlobal.hWnd, WM_ QUIT, 0, 0);1556 bRc = PostMessage(g_VBoxUsbGlobal.hWnd, WM_CLOSE, 0, 0); 1557 1557 AssertMsg(bRc, ("PostMessage for hWnd failed winEr(%d)\n", GetLastError())); 1558 1558
Note:
See TracChangeset
for help on using the changeset viewer.