Roderick Colenbrander : wined3d: Fix a hdc check in InitAdapters.

Alexandre Julliard julliard at wine.codeweavers.com
Wed Aug 29 07:48:13 CDT 2007


Module: wine
Branch: master
Commit: 8a7332f60f5fe12d306c2ccd1c55e31edb58efd4
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=8a7332f60f5fe12d306c2ccd1c55e31edb58efd4

Author: Roderick Colenbrander <thunderbird2k at gmx.net>
Date:   Wed Aug 29 01:07:26 2007 +0200

wined3d: Fix a hdc check in InitAdapters.

---

 dlls/wined3d/directx.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/wined3d/directx.c b/dlls/wined3d/directx.c
index a553a6a..e60812a 100644
--- a/dlls/wined3d/directx.c
+++ b/dlls/wined3d/directx.c
@@ -2541,7 +2541,7 @@ BOOL InitAdapters(void) {
         }
 
         hdc = pwglGetCurrentDC();
-        if(!ret) {
+        if(!hdc) {
             ERR("Failed to get gl HDC\n");
             HeapFree(GetProcessHeap(), 0, Adapters);
             WineD3D_ReleaseFakeGLContext();




More information about the wine-cvs mailing list