[GDI32]
authorJérôme Gardou <jerome.gardou@reactos.org>
Mon, 26 Apr 2010 22:07:01 +0000 (22:07 +0000)
committerJérôme Gardou <jerome.gardou@reactos.org>
Mon, 26 Apr 2010 22:07:01 +0000 (22:07 +0000)
  - This wasn't a fix, it was code readability.
Thanks to physicus for having pointed it.

svn path=/branches/reactos-yarotows/; revision=47045

dll/win32/gdi32/objects/dc.c

index a752c8f..6bd69ca 100644 (file)
@@ -60,7 +60,7 @@ IntCreateDICW ( LPCWSTR   lpwszDriver,
     DPRINT1("Not a DISPLAY device! %wZ\n", &Device);
  }
 
     DPRINT1("Not a DISPLAY device! %wZ\n", &Device);
  }
 
- hDC = NtGdiOpenDCW( (Default ? &Device : NULL),
+ hDC = NtGdiOpenDCW( (Default ? NULL : &Device),
                      (PDEVMODEW) lpInitData,
                      (lpwszOutput ? &Output : NULL),
                       iType,             // DCW 0 and ICW 1.
                      (PDEVMODEW) lpInitData,
                      (lpwszOutput ? &Output : NULL),
                       iType,             // DCW 0 and ICW 1.