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();