Changeset 30538 in vbox for trunk/src/VBox/Additions/WINNT/Graphics/Display
- Timestamp:
- Jun 30, 2010 6:58:49 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Graphics/Display/wddm/VBoxDispCm.cpp
r30532 r30538 25 25 CRITICAL_SECTION CritSect; 26 26 RTLISTNODE CtxList; 27 bool bQueryMp; 27 28 } VBOXDISPCM_SESSION, *PVBOXDISPCM_SESSION; 28 29 … … 63 64 InitializeCriticalSection(&pSession->CritSect); 64 65 RTListInit(&pSession->CtxList); 66 pSession->bQueryMp = false; 65 67 return S_OK; 66 68 } … … 207 209 do 208 210 { 209 HRESULT hr = vboxDispCmSessionCmdQueryData(pSession, pCmd, cbCmd); 210 Assert(hr == S_OK || hr == S_FALSE); 211 if (hr == S_OK || hr != S_FALSE) 212 return hr; 211 #ifdef DEBUG_misha 212 /* not tested yet */ 213 if (pSession->bQueryMp) 214 #endif 215 { 216 HRESULT hr = vboxDispCmSessionCmdQueryData(pSession, pCmd, cbCmd); 217 Assert(hr == S_OK || hr == S_FALSE); 218 if (hr == S_OK || hr != S_FALSE) 219 return hr; 220 221 pSession->bQueryMp = false; 222 } 213 223 214 224 DWORD dwResult = WaitForSingleObject(pSession->hEvent, dwMilliseconds); … … 217 227 case WAIT_OBJECT_0: 218 228 { 229 pSession->bQueryMp = true; 219 230 break; /* <- query commands */ 220 231 } 221 232 case WAIT_TIMEOUT: 222 233 { 234 Assert(!pSession->bQueryMp); 223 235 return WAIT_TIMEOUT; 224 236 }
Note:
See TracChangeset
for help on using the changeset viewer.