https://git.reactos.org/?p=reactos.git;a=commitdiff;h=870aa1254f07f6ec7d8c1…
commit 870aa1254f07f6ec7d8c1ad93d53fa6c6b18264b
Author: Joachim Henze <Joachim.Henze(a)reactos.org>
AuthorDate: Sat Dec 19 17:47:33 2020 +0100
Commit: Joachim Henze <Joachim.Henze(a)reactos.org>
CommitDate: Sat Dec 19 17:47:33 2020 +0100
[WIN32SS] Fix BSOD 0x1E nullptr deref via Git-bash CORE-16586
Thanks to the patches author Doug Lyons!
---
win32ss/user/ntuser/clipboard.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/win32ss/user/ntuser/clipboard.c b/win32ss/user/ntuser/clipboard.c
index d144220a18f..2ec385b1ce8 100644
--- a/win32ss/user/ntuser/clipboard.c
+++ b/win32ss/user/ntuser/clipboard.c
@@ -375,6 +375,9 @@ UserClipboardRelease(PWND pWindow)
{
PWINSTATION_OBJECT pWinStaObj;
+ if (!pWindow)
+ return;
+
pWinStaObj = IntGetWinStaForCbAccess();
if (!pWinStaObj)
return;