Commit 2f8f9d20 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

user32: Use GWLP_HWNDPARENT to find an owner in EndDialog.

parent 9da0c00a
......@@ -914,7 +914,7 @@ BOOL WINAPI EndDialog( HWND hwnd, INT_PTR retval )
dlgInfo->idResult = retval;
dlgInfo->flags |= DF_END;
owner = GetWindow( hwnd, GW_OWNER );
owner = (HWND)GetWindowLongPtrA( hwnd, GWLP_HWNDPARENT );
if (owner)
EnableWindow( owner, TRUE );
......
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