console test / even the smallest patch can be wrong

Eric Pouech pouech-eric at wanadoo.fr
Tue Sep 23 11:53:14 CDT 2003


Jakob Eriksson wrote:
> 
> 
> ------------------------------------------------------------------------
> 
> Index: dlls/kernel/tests/console.c
> ===================================================================
> RCS file: /home/wine/wine/dlls/kernel/tests/console.c,v
> retrieving revision 1.2
> diff -u -r1.2 console.c
> --- dlls/kernel/tests/console.c	21 Jun 2003 02:07:10 -0000	1.2
> +++ dlls/kernel/tests/console.c	23 Sep 2003 02:23:36 -0000
> @@ -70,7 +70,7 @@
>  
>  static void testCursor(HANDLE hCon, COORD sbSize)
>  {
> -    COORD		c;
> +	COORD		c = {0};
>      
>      ok(SetConsoleCursorPosition(0, c) == 0, "No handle");
>      ok(GetLastError() == ERROR_INVALID_HANDLE, "GetLastError: expecting %u got %lu",
since 0 is a wrong console handle (in this case), we don't care about 
actual c value.
A+

-- 
Eric Pouech




More information about the wine-devel mailing list