[PATCH 02/10] gdi32: Use DC_ATTR for GetCurrentPositionEx implementation.

Jacek Caban jacek at codeweavers.com
Tue Jul 20 02:12:12 CDT 2021


On 7/20/21 8:58 AM, Huw Davies wrote:
> On Mon, Jul 19, 2021 at 11:25:08PM +0200, Jacek Caban wrote:
>> Signed-off-by: Jacek Caban <jacek at codeweavers.com>
>> ---
>>   dlls/gdi32/dc.c             | 13 -------------
>>   dlls/gdi32/gdidc.c          | 11 +++++++++++
>>   dlls/gdi32/tests/metafile.c |  3 +++
>>   3 files changed, 14 insertions(+), 13 deletions(-)
> This is failing to build:
> dlls/gdi32/gdidc.c: In function ‘GetCurrentPositionEx’:
> dlls/gdi32/gdidc.c:34:21: warning: implicit declaration of function ‘get_dc_attr’ [-Wimplicit-function-declaration]
>     34 |     if (!(dc_attr = get_dc_attr( hdc ))) return FALSE;
>        |                     ^~~~~~~~~~~
> dlls/gdi32/gdidc.c:34:19: warning: assignment to ‘DC_ATTR *’ {aka ‘struct DC_ATTR *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
>     34 |     if (!(dc_attr = get_dc_attr( hdc ))) return FALSE;
>        |                   ^
>

I messed up patch order before sending, sorry about that.


Thanks,

Jacek




More information about the wine-devel mailing list