user32: Always enable owner window in EndDialog.

Jacek Caban jacek at codeweavers.com
Thu Feb 25 10:33:26 CST 2016


On 02/25/16 12:32, Alexandre Julliard wrote:
> Jacek Caban <jacek at codeweavers.com> writes:
>
>> @@ -12245,6 +12245,7 @@ static void test_EndDialog(void)
>>      hactive = GetForegroundWindow();
>>      ok(hdlg == hactive, "Wrong window has focus (%p != %p)\n", hdlg, hactive);
>>      EndDialog(hdlg, 0);
>> +    ok(IsWindowEnabled(hparent), "parent is not enabled\n");
>>      hactive = GetForegroundWindow();
>>      ok(hparent == hactive, "Wrong window has focus (parent != active) (active: %p, parent: %p, dlg: %p, other: %p)\n", hactive, hparent, hdlg, hother);
>>      DestroyWindow(hdlg);
> It would be interesting to test what happens if the dialog is not the
> active window.

It doesn't seem to matter. I sent a new patch with more tests.

Thanks,
Jacek



More information about the wine-devel mailing list