[WIN32SS:GDI] Add a sanity assert
authorVictor Perevertkin <victor.perevertkin@reactos.org>
Mon, 13 Sep 2021 20:37:34 +0000 (23:37 +0300)
committerVictor Perevertkin <victor.perevertkin@reactos.org>
Tue, 14 Sep 2021 14:58:23 +0000 (17:58 +0300)
win32ss/gdi/eng/pdevobj.c

index eb05e23..a9f959b 100644 (file)
@@ -365,6 +365,7 @@ EngpCreatePDEV(
     }
     else
     {
     }
     else
     {
+        ASSERT(gpPrimaryGraphicsDevice);
         pGraphicsDevice = gpPrimaryGraphicsDevice;
     }
 
         pGraphicsDevice = gpPrimaryGraphicsDevice;
     }