diff --git a/reactos/subsys/system/explorer/taskbar/taskbar.cpp b/reactos/subsys/system/explorer/taskbar/taskbar.cpp index 09b6bc8d9ae..5ffb4213ae9 100644 --- a/reactos/subsys/system/explorer/taskbar/taskbar.cpp +++ b/reactos/subsys/system/explorer/taskbar/taskbar.cpp @@ -171,10 +171,8 @@ int TaskBar::Notify(int id, NMHDR* pnmh) #ifndef __MINGW32__ // SHRestricted() missing in MinGW (as of 29.10.2003) static DynamicFct pSHRestricted(TEXT("SHELL32"), "SHRestricted"); -#endif -#ifndef __MINGW32__ // SHRestricted() missing in MinGW (as of 29.10.2003) - if (!(*pSHRestricted)(REST_NOTRAYCONTEXTMENU)) + if (pSHRestricted && !(*pSHRestricted)(REST_NOTRAYCONTEXTMENU)) #endif ShowAppSystemMenu(it); }