vbox的更動 61943 路徑 trunk/src/VBox/Additions
- 時間撮記:
- 2016-6-30 上午02:18:11 (8 年 以前)
- 檔案:
-
- 修改 1 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxDispIf.cpp
r61603 r61943 924 924 ) 925 925 { 926 /* TODO: AM need to check that the thread retrieves these events */ 926 927 switch(uMsg) 927 928 { … … 942 943 break; 943 944 } 944 case WM_CLOSE:945 LogFunc(("got WM_CLOSE for hwnd(0x%x)", hwnd));946 return 0;947 case WM_DESTROY:948 LogFunc(("got WM_DESTROY for hwnd(0x%x)", hwnd));949 return 0;950 945 case WM_NCHITTEST: 951 946 LogFunc(("got WM_NCHITTEST for hwnd(0x%x)\n", hwnd)); … … 1051 1046 HRESULT hr = S_FALSE; 1052 1047 1048 /* Create the thread message queue*/ 1053 1049 PeekMessage(&Msg, 1054 1050 NULL /* HWND hWnd */, … … 1056 1052 WM_USER /* UINT wMsgFilterMax */, 1057 1053 PM_NOREMOVE); 1054 1055 /* 1056 * Send signal that message queue is ready. 1057 * From this moment only the thread is ready to receive messages. 1058 */ 1059 BOOL bRc = SetEvent(pMon->hEvent); 1060 if (!bRc) 1061 { 1062 DWORD winErr = GetLastError(); 1063 WARN_FUNC(("SetEvent failed, winErr = (%d)", winErr)); 1064 HRESULT tmpHr = HRESULT_FROM_WIN32(winErr); 1065 Assert(tmpHr != S_OK); 1066 } 1058 1067 1059 1068 do … … 1065 1074 ); 1066 1075 1067 if(!bResult) /* WM_QUIT was posted */ 1068 { 1069 hr = S_FALSE; 1070 Log(("VBoxTray: GetMessage returned FALSE\n")); 1071 VBoxRrRetryStop(); 1072 break; 1073 } 1074 1075 if(bResult == -1) /* error occurred */ 1076 if (bResult == -1) /* error occurred */ 1076 1077 { 1077 1078 DWORD winEr = GetLastError(); … … 1087 1088 } 1088 1089 1090 if(!bResult) /* WM_QUIT was posted */ 1091 { 1092 hr = S_FALSE; 1093 Log(("VBoxTray: GetMessage returned FALSE\n")); 1094 VBoxRrRetryStop(); 1095 break; 1096 } 1097 1089 1098 switch (Msg.message) 1090 1099 { … … 1108 1117 static DWORD WINAPI vboxRrRunnerThread(void *pvUser) 1109 1118 { 1110 PVBOXRR pMon = &g_VBoxRr;1111 1112 BOOL bRc = SetEvent(pMon->hEvent);1113 if (!bRc)1114 {1115 DWORD winErr = GetLastError();1116 WARN_FUNC(("SetEvent failed, winErr = (%d)", winErr));1117 HRESULT tmpHr = HRESULT_FROM_WIN32(winErr);1118 Assert(tmpHr != S_OK);1119 }1120 1121 1119 HRESULT hr = vboxRrWndInit(); 1122 1120 Assert(hr == S_OK);
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器