[0.4.10][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:24:29 +01:00
parent 9a2dbda9a6
commit bf14e1ad40

View file

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