[0.4.11][WIN32SS] Fix BSOD 0x1E nullptr deref via Git-bash CORE-16586

Thanks to the patches author Doug Lyons!

fix picked from 0.4.15-dev-1457-g 870aa1254f
and the whitespace addendum 0.4.15-dev-1458-g 449a341786
This commit is contained in:
Joachim Henze 2021-01-16 14:25:04 +01:00
parent 24317c111f
commit 958556c653

View file

@ -360,6 +360,9 @@ UserClipboardRelease(PWND pWindow)
{
PWINSTATION_OBJECT pWinStaObj;
if (!pWindow)
return;
pWinStaObj = IntGetWinStaForCbAccess();
if (!pWinStaObj)
return;