Changeset 38840 in vbox for trunk/src/VBox/Additions/WINNT/Graphics/Video/disp
- Timestamp:
- Sep 23, 2011 11:34:44 AM (13 years ago)
- Location:
- trunk/src/VBox/Additions/WINNT/Graphics/Video/disp/xpdm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Graphics/Video/disp/xpdm/VBoxDispDriver.cpp
r37384 r38840 789 789 { 790 790 PVBOXDISPDEV pDev = (PVBOXDISPDEV) dhpdev; 791 DWORD dwrc;792 791 int rc; 793 792 LOGF_ENTER(); … … 846 845 847 846 /* Associate back GDI bitmap residing in our framebuffer memory with GDI's handle to our device */ 848 dwrc = EngAssociateSurface((HSURF)pDev->surface.hBitmap, pDev->hDevGDI, 0); 849 if (dwrc != NO_ERROR) 850 { 851 WARN(("EngAssociateSurface on bitmap failed with %#x", dwrc)); 847 if (!EngAssociateSurface((HSURF)pDev->surface.hBitmap, pDev->hDevGDI, 0)) 848 { 849 WARN(("EngAssociateSurface on bitmap failed")); 852 850 return FALSE; 853 851 } 854 852 855 853 /* Associate device managed surface with GDI's handle to our device */ 856 dwrc = EngAssociateSurface(pDev->surface.hSurface, pDev->hDevGDI, pDev->flDrawingHooks); 857 if (dwrc != NO_ERROR) 858 { 859 WARN(("EngAssociateSurface on surface failed with %#x", dwrc)); 854 if (!EngAssociateSurface(pDev->surface.hSurface, pDev->hDevGDI, pDev->flDrawingHooks)) 855 { 856 WARN(("EngAssociateSurface on surface failed")); 860 857 return FALSE; 861 858 } -
trunk/src/VBox/Additions/WINNT/Graphics/Video/disp/xpdm/VBoxDispDriverDDraw.cpp
r37423 r38840 243 243 * (required for VBVA and VRDP). 244 244 */ 245 DWORD dwrc;246 245 SURFOBJ *pso; 247 246 248 dwrc = EngAssociateSurface((HSURF)hBitmap, pDev->hDevGDI, pDev->flDrawingHooks); 249 if (dwrc!=NO_ERROR) 250 { 251 VBOX_WARN_WINERR(dwrc); 247 if (!EngAssociateSurface((HSURF)hBitmap, pDev->hDevGDI, pDev->flDrawingHooks)) 248 { 249 WARN(("EngAssociateSurface failed")); 252 250 EngDeleteSurface((HSURF)hBitmap); 253 251 return NULL;
Note:
See TracChangeset
for help on using the changeset viewer.