https://git.reactos.org/?p=reactos.git;a=commitdiff;h=bac15d86bb3c49796c03f…
commit bac15d86bb3c49796c03f601d76090099deb4cac
Author: Stanislav Motylkov <x86corez(a)gmail.com>
AuthorDate: Thu Sep 13 14:37:20 2018 +0300
Commit: Mark Jansen <mark.jansen(a)reactos.org>
CommitDate: Thu Sep 13 18:19:19 2018 +0200
[FONT][WIN32SS] Check whether Win32Process is NULL
CORE-15031
---
win32ss/gdi/ntgdi/freetype.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/win32ss/gdi/ntgdi/freetype.c b/win32ss/gdi/ntgdi/freetype.c
index 75f3fd506c..3d53dac22e 100644
--- a/win32ss/gdi/ntgdi/freetype.c
+++ b/win32ss/gdi/ntgdi/freetype.c
@@ -426,6 +426,9 @@ VOID DumpPrivateFontList(BOOL bDoLock)
{
PPROCESSINFO Win32Process = PsGetCurrentProcessWin32Process();
+ if (!Win32Process)
+ return;
+
if (bDoLock)
IntLockProcessPrivateFonts(Win32Process);