[0.4.9][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:23:49 +01:00
parent 94bc1f8775
commit fab997520e

View file

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