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:
|
||||
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
|
||||
if (wParam == SC_PUTMARK)
|
||||
TRACE_(shell)("Mark requested by user\n");
|
||||
|
|
Loading…
Reference in New Issue