mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 19:52:56 +00:00
Need to make safe, check for zero after retrieving desktop pointer.
svn path=/trunk/; revision=34407
This commit is contained in:
parent
7fdb555744
commit
326c138e1b
1 changed files with 2 additions and 1 deletions
|
@ -705,7 +705,8 @@ GetShellWindow(VOID)
|
||||||
{
|
{
|
||||||
PDESKTOP pdi;
|
PDESKTOP pdi;
|
||||||
pdi = GetThreadDesktopInfo();
|
pdi = GetThreadDesktopInfo();
|
||||||
return pdi->hShellWindow;
|
if (pdi) return pdi->hShellWindow;
|
||||||
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue