mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-04-25 12:11:00 +00:00
Fix to use the correct definition of DwmDefWindowProc
This commit is contained in:
parent
42c64e438f
commit
d17bde151f
1 changed files with 2 additions and 3 deletions
|
@ -34,14 +34,13 @@
|
||||||
|
|
||||||
BOOL DwmDefWindowProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam, LRESULT *plResult )
|
BOOL DwmDefWindowProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam, LRESULT *plResult )
|
||||||
{
|
{
|
||||||
typedef LRESULT(* dwmdwp)(HWND, UINT, WPARAM, LPARAM );
|
typedef LRESULT(* dwmdwp)(HWND, UINT, WPARAM, LPARAM, LRESULT* );
|
||||||
BOOL result(FALSE);
|
BOOL result(FALSE);
|
||||||
HMODULE module = LoadLibrary( _T( "dwmapi.dll" ) );
|
HMODULE module = LoadLibrary( _T( "dwmapi.dll" ) );
|
||||||
if( module ) {
|
if( module ) {
|
||||||
dwmdwp proc = reinterpret_cast<dwmdwp>( GetProcAddress( module, "DwmDefWindowProc" ) );
|
dwmdwp proc = reinterpret_cast<dwmdwp>( GetProcAddress( module, "DwmDefWindowProc" ) );
|
||||||
if( proc ) {
|
if( proc ) {
|
||||||
*plResult = proc( hWnd, msg, wParam, lParam );
|
result = proc( hWnd, msg, wParam, lParam, plResult );
|
||||||
result = TRUE;
|
|
||||||
}
|
}
|
||||||
FreeLibrary(module);
|
FreeLibrary(module);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue