mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 18:15:11 +00:00
check for availability of SHRestricted() in shell32.dll
svn path=/trunk/; revision=7066
This commit is contained in:
parent
303442cb3f
commit
ec57d5df80
1 changed files with 1 additions and 3 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue