From 563561eecb75512318e8edebfd95d6c86c65f29c Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Mon, 24 Jan 2000 05:46:47 +0000 Subject: [PATCH] Use GetProcAddress instead of calling ShellAboutA directly. --- windows/nonclient.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/windows/nonclient.c b/windows/nonclient.c index becbf06fdfc..b3416c17200 100644 --- a/windows/nonclient.c +++ b/windows/nonclient.c @@ -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");