Line Length (Was: Re: user32: Unlike RedrawWindow, UpdateWindow doesn't accept a NULL hwnd +tests (try 2))

Michael Stefaniuc mstefani at redhat.com
Tue Sep 28 03:25:04 CDT 2010


Dmitry Timoshkov wrote:
> Louis Lenders <xerox_xerox2000 at yahoo.co.uk> wrote:
> 
>> +    SetLastError(0xdadadada);
>> +    retval = UpdateWindow(NULL);
>> +    ok( !retval, "Expected 0, got %d\n", retval);
>> +    ok( GetLastError() == ERROR_INVALID_WINDOW_HANDLE || broken(GetLastError() == 0xdadadada) /* win9x */, "Expected ERROR_INVALID_WINDOW_HANDLE, got %d\n", GetLastError());
> 
> It's better to use a commonly accepted 0xdeadbeef as an invalid last error
> value, and limit the line length somewhere at 80.
A line length of 80 is kinda outdated, I have talked to Alexandre and he
considers 100 a better value. I would have preferred 120 to hold for a
while.

bye
	michael



More information about the wine-devel mailing list