fix faux pas

This commit is contained in:
Ritchie Swann 2024-08-11 10:34:34 +01:00 committed by Rachael Alexanderson
parent 699bef1316
commit 42c64e438f
No known key found for this signature in database
GPG Key ID: 26A8ACCE97115EE0
1 changed files with 2 additions and 1 deletions

View File

@ -35,12 +35,13 @@
BOOL DwmDefWindowProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam, LRESULT *plResult )
{
typedef LRESULT(* dwmdwp)(HWND, UINT, WPARAM, LPARAM );
BOOL result(false);
BOOL result(FALSE);
HMODULE module = LoadLibrary( _T( "dwmapi.dll" ) );
if( module ) {
dwmdwp proc = reinterpret_cast<dwmdwp>( GetProcAddress( module, "DwmDefWindowProc" ) );
if( proc ) {
*plResult = proc( hWnd, msg, wParam, lParam );
result = TRUE;
}
FreeLibrary(module);
}