[FONT][WIN32SS] Check whether Win32Process is NULL
[reactos.git] / win32ss / gdi / ntgdi / freetype.c
index 75f3fd5..3d53dac 100644 (file)
@@ -426,6 +426,9 @@ VOID DumpPrivateFontList(BOOL bDoLock)
 {
     PPROCESSINFO Win32Process = PsGetCurrentProcessWin32Process();
 
+    if (!Win32Process)
+        return;
+
     if (bDoLock)
         IntLockProcessPrivateFonts(Win32Process);