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:
parent
9da0c00a68
commit
2f8f9d20aa
|
@ -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 );
|
||||
|
||||
|
|
Loading…
Reference in New Issue