Re: Resend: user32: fix return value in DialogBoxParamA if no resourcecan be found + simple test (try 2)
31 Dec
2006
31 Dec
'06
5:46 p.m.
"Louis. Lenders" <xerox_xerox2000(a)yahoo.co.uk> wrote:
As Dmitry Timoshkov (thanks for that) the SetLastError was not necessary. Here's updated patch.
Probably the problem is that you need also handle both FindResourceW and LoadResource failures the same way by returning -1, and change 'return -1;' later to 'return 0;' (for invalid parent) as MSDN suggests. All that needs to be tested as well. Also DialogBoxParamW needs to be fixed as well. Probably other dialaog APIs (like DialogBoxIndirectParamAorW) need a review regarding that. -- Dmitry.
6925
Age (days ago)
6925
Last active (days ago)
0 comments
1 participants
participants (1)
-
Dmitry Timoshkov