Commit 20b4cdde authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

user32: Load dynamically wine_get_version().

parent d40a0d8a
......@@ -159,12 +159,16 @@ LRESULT NC_HandleSysCommand( HWND hwnd, WPARAM wParam, LPARAM lParam )
if (hmodule)
{
BOOL (WINAPI *aboutproc)(HWND, LPCSTR, LPCSTR, HICON);
extern const char * CDECL wine_get_version(void);
const char * (CDECL *p_wine_get_version)(void);
char app[256];
sprintf( app, "Wine %s", wine_get_version() );
p_wine_get_version = (void *)GetProcAddress( GetModuleHandleW(L"ntdll.dll"), "wine_get_version" );
aboutproc = (void *)GetProcAddress( hmodule, "ShellAboutA" );
if (aboutproc) aboutproc( hwnd, app, NULL, 0 );
if (p_wine_get_version && aboutproc)
{
snprintf( app, ARRAY_SIZE(app), "Wine %s", p_wine_get_version() );
aboutproc( hwnd, app, NULL, 0 );
}
FreeLibrary( hmodule );
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment