Changeset 63018 in vbox for trunk/src/VBox/Additions/WINNT/Graphics/Video/disp
- Timestamp:
- Aug 4, 2016 11:14:14 PM (8 years ago)
- Location:
- trunk/src/VBox/Additions/WINNT/Graphics/Video/disp/wddm
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Graphics/Video/disp/wddm/VBoxD3DIf.cpp
r62522 r63018 221 221 if (!pRect) 222 222 { 223 if (pAlloc->SurfDesc.pitch == pLockInfo->Pitch)223 if (pAlloc->SurfDesc.pitch == (UINT)pLockInfo->Pitch) 224 224 { 225 225 Assert(pAlloc->SurfDesc.cbSize); … … 282 282 } 283 283 284 if (pRect->right - pRect->left == pAlloc->SurfDesc.width && srcPitch == dstPitch)284 if (pRect->right - pRect->left == (LONG)pAlloc->SurfDesc.width && srcPitch == dstPitch) 285 285 { 286 286 uint32_t cbSize = vboxWddmCalcSize(pAlloc->SurfDesc.pitch, pRect->bottom - pRect->top, pAlloc->SurfDesc.format); … … 291 291 uint32_t pitch = RT_MIN(srcPitch, dstPitch); 292 292 uint32_t cbCopyLine = vboxWddmCalcRowSize(pRect->left, pRect->right, pAlloc->SurfDesc.format); 293 Assert(pitch); 293 Assert(pitch); NOREF(pitch); 294 294 uint32_t cRows = vboxWddmCalcNumRows(pRect->top, pRect->bottom, pAlloc->SurfDesc.format); 295 295 for (UINT j = 0; j < cRows; ++j) … … 431 431 { 432 432 PVBOXWDDMDISP_ALLOCATION pAllocation = &pRc->aAllocations[0]; 433 IDirect3DBaseTexture9 *pD3DIfTex ;433 IDirect3DBaseTexture9 *pD3DIfTex = NULL; /* Shut up MSC. */ 434 434 HANDLE hSharedHandle = pAllocation->hSharedHandle; 435 435 void **pavClientMem = NULL; … … 570 570 PVBOXWDDMDISP_ALLOCATION pAllocation = &pRc->aAllocations[i]; 571 571 HANDLE hSharedHandle = pAllocation->hSharedHandle; 572 IDirect3DSurface9 * pD3D9Surf;572 IDirect3DSurface9 *pD3D9Surf = NULL; /* Shut up MSC. */ 573 573 if ( 574 574 #ifdef VBOX_WITH_CROGL … … 644 644 hr = S_OK; 645 645 continue; 646 646 #if 0 /* unreachable */ 647 647 /* fail branch */ 648 648 pD3D9Surf->Release(); 649 #endif 649 650 } 650 651 -
trunk/src/VBox/Additions/WINNT/Graphics/Video/disp/wddm/VBoxD3DIf.h
r62522 r63018 131 131 132 132 HRESULT hr = VBoxD3DIfDeviceCreateDummy(pDevice); 133 Assert(hr == S_OK); 133 Assert(hr == S_OK); NOREF(hr); 134 134 Assert(pDevice->pDevice9If); 135 135 return pDevice->pDevice9If; -
trunk/src/VBox/Additions/WINNT/Graphics/Video/disp/wddm/VBoxDispD3DIf.cpp
r63017 r63018 61 61 if (!pD3D->hD3DLib) 62 62 { 63 DWORD winErr = GetLastError(); NOREF(winErr) 63 DWORD winErr = GetLastError(); NOREF(winErr); 64 64 WARN((__FUNCTION__": LoadLibrary failed, winErr = (%d)", winErr)); 65 65 return E_FAIL; … … 1278 1278 void VBoxDispD3DGlobalClose(PVBOXWDDMDISP_D3D pD3D, PVBOXWDDMDISP_FORMATS pFormats) 1279 1279 { 1280 RT_NOREF(pD3D, pFormats); 1280 1281 vboxDispD3DGlobalLock(); 1281 1282 --g_cVBoxDispD3DGlobalOpens; 1282 1283 if (!g_cVBoxDispD3DGlobalOpens) 1283 {1284 1284 vboxDispD3DGlobalDoClose(&g_VBoxDispD3DGlobalD3D); 1285 }1286 1285 vboxDispD3DGlobalUnlock(); 1287 1286 } -
trunk/src/VBox/Additions/WINNT/Graphics/Video/disp/wddm/VBoxUhgsmiBase.h
r63017 r63018 101 101 else 102 102 { 103 if (!cbLock) 104 { 105 Assert(0); 106 return VERR_INVALID_PARAMETER; 107 } 108 if (offLock + cbLock > pBuf->cbBuffer) 109 { 110 Assert(0); 111 return VERR_INVALID_PARAMETER; 112 } 103 AssertReturn(cbLock, VERR_INVALID_PARAMETER); 104 AssertReturn(offLock + cbLock <= pBuf->cbBuffer, VERR_INVALID_PARAMETER); 113 105 114 106 uint32_t iFirstPage = offLock >> 12; … … 160 152 { 161 153 const uint32_t cbDmaCmd = RT_OFFSETOF(VBOXWDDM_DMA_PRIVATEDATA_UM_CHROMIUM_CMD, aBufInfos[cBuffers]); 162 if (*pCommandBufferSize < cbDmaCmd) 163 { 164 Assert(0); 165 return VERR_GENERAL_FAILURE; 166 } 167 if (AllocationListSize < cBuffers) 168 { 169 Assert(0); 170 return VERR_GENERAL_FAILURE; 171 } 154 RT_NOREF(pPatchLocationList, PatchLocationListSize); 155 156 AssertReturn(*pCommandBufferSize >= cbDmaCmd, VERR_GENERAL_FAILURE); 157 AssertReturn(AllocationListSize >= cBuffers, VERR_GENERAL_FAILURE); 172 158 173 159 *pCommandBufferSize = cbDmaCmd;
Note:
See TracChangeset
for help on using the changeset viewer.