On 10/05/2009 05:09 AM, Dmitry Kislyuk wrote:


--- On *Sun, 10/4/09, Paul Vriens /<[email protected]>/* wrote:


    From: Paul Vriens <[email protected]>
    Subject: Re: kernel32/tests: Pass test on error code returned by
    Windows 7
    To: [email protected]
    Cc: [email protected]
    Date: Sunday, October 4, 2009, 4:20 AM

    On 10/04/2009 09:10 AM, Dmitry Kislyuk wrote:
     >> + ok( GetLastError() == 0xdeadbeef || GetLastError() == 2 /* Win
    7 */,
     >> + "expected 0xdeadbeef or 2, got %d\n", GetLastError());

     >Don't use magic numbers, ERROR_FILE_NOT_FOUND would be better.

     >-- Cheers,

     >Paul.

    Hi Paul,

    All of the tests in this group of tests are the same way. Magic
    numbers instead of defines. I wanted to stay consistent with that.

    If Alexandre doesn't apply it I will resend with using
    ERROR_FILE_NOT_FOUND per your suggestion.

    Thank you for looking at my patch.

    Dmitry


Hi Dmitry,

The 'magical numbers' you are talking about in profile.c are not error codes but the return values from for example GetPrivateProfileStringA (number of characters).

--
Cheers,

Paul.


Reply via email to