[prev in list] [next in list] [prev in thread] [next in thread]
List: wine-devel
Subject: Re: headers, two tests
From: "Dmitry Timoshkov" <dmitry () codeweavers ! com>
Date: 2007-05-31 2:39:26
Message-ID: 001c01c7a32c$ec2c8e60$6700a8c0 () DMITRY
[Download RAW message or body]
This time it's just the nit picks, I see no serious problems.
"Evan Stade" <estade@gmail.com> wrote:
> +void WINGDIPAPI GdipFree(void* ptr)
> +{
> + if(ptr)
> + HeapFree(GetProcessHeap(), 0, ptr);
> +}
There is no need to check a pointer for NULL before HeapFree call, there is
even a janitorial project in Wine to remove such checks.
> +static void test_constructor_destructor(void)
> +{
> + GpStatus status;
> + GpGraphics *pen;
> +
> + status = GdipCreatePen1((ARGB)0xffff00ff, 10.0f, UnitPixel, &pen);
GdipCreatePen1 takes a pointer to GpPen in the last parameter, not GpGraphics.
> + expect(Ok, status);
> + ok(pen, "Expected pen to be initialized");
If you are testing returned pen pointer for NULL, you need to initialize it
to NULL before the call.
--
Dmitry.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic