mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-29 19:26:33 +00:00
check for availability of SHRestricted() in shell32.dll
svn path=/trunk/; revision=7066
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user