Use GetProcAddress instead of calling ShellAboutA directly.
This commit is contained in:
parent
54dc94ebf8
commit
563561eecb
@ -2769,7 +2769,15 @@ LONG NC_HandleSysCommand( HWND hwnd, WPARAM16 wParam, POINT16 pt )
|
|||||||
|
|
||||||
case SC_SCREENSAVE:
|
case SC_SCREENSAVE:
|
||||||
if (wParam == SC_ABOUTWINE)
|
if (wParam == SC_ABOUTWINE)
|
||||||
ShellAboutA(hwnd,"Wine", WINE_RELEASE_INFO, 0);
|
{
|
||||||
|
HMODULE hmodule = LoadLibraryA( "shell32.dll" );
|
||||||
|
if (hmodule)
|
||||||
|
{
|
||||||
|
FARPROC aboutproc = GetProcAddress( hmodule, "ShellAboutA" );
|
||||||
|
if (aboutproc) aboutproc( hwnd, "Wine", WINE_RELEASE_INFO, 0 );
|
||||||
|
FreeLibrary( hmodule );
|
||||||
|
}
|
||||||
|
}
|
||||||
else
|
else
|
||||||
if (wParam == SC_PUTMARK)
|
if (wParam == SC_PUTMARK)
|
||||||
TRACE_(shell)("Mark requested by user\n");
|
TRACE_(shell)("Mark requested by user\n");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user