check for availability of SHRestricted() in shell32.dll

svn path=/trunk/; revision=7066
This commit is contained in:
Martin Fuchs 2003-12-14 21:56:52 +00:00
parent 303442cb3f
commit ec57d5df80

View file

@ -171,10 +171,8 @@ int TaskBar::Notify(int id, NMHDR* pnmh)
#ifndef __MINGW32__ // SHRestricted() missing in MinGW (as of 29.10.2003)
static DynamicFct<DWORD(STDAPICALLTYPE*)(RESTRICTIONS)> 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);
}