https://git.reactos.org/?p=reactos.git;a=commitdiff;h=d74eb54b06ccc905dbd45…
commit d74eb54b06ccc905dbd45256a0b3b1e9deeadb7c
Author: Victor Perevertkin <victor.perevertkin(a)reactos.org>
AuthorDate: Mon Sep 13 23:37:34 2021 +0300
Commit: Victor Perevertkin <victor.perevertkin(a)reactos.org>
CommitDate: Tue Sep 14 17:58:23 2021 +0300
[WIN32SS:GDI] Add a sanity assert
---
win32ss/gdi/eng/pdevobj.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/win32ss/gdi/eng/pdevobj.c b/win32ss/gdi/eng/pdevobj.c
index eb05e237039..a9f959b4b23 100644
--- a/win32ss/gdi/eng/pdevobj.c
+++ b/win32ss/gdi/eng/pdevobj.c
@@ -365,6 +365,7 @@ EngpCreatePDEV(
}
else
{
+ ASSERT(gpPrimaryGraphicsDevice);
pGraphicsDevice = gpPrimaryGraphicsDevice;
}