From 8a7332f60f5fe12d306c2ccd1c55e31edb58efd4 Mon Sep 17 00:00:00 2001 From: Roderick Colenbrander Date: Wed, 29 Aug 2007 01:07:26 +0200 Subject: [PATCH] wined3d: Fix a hdc check in InitAdapters. --- dlls/wined3d/directx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/wined3d/directx.c b/dlls/wined3d/directx.c index a553a6a1453..e60812a1d35 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();