user32: Use GWLP_HWNDPARENT to find an owner in EndDialog.

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Jacek Caban 2016-04-06 14:41:03 +02:00 committed by Alexandre Julliard
parent 9da0c00a68
commit 2f8f9d20aa
1 changed files with 1 additions and 1 deletions

View File

@ -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 );