1
0
mirror of https://github.com/wine-mirror/wine synced 2024-07-08 20:06:18 +00:00

gdi32: Use explicit CDECL in gdi_image_bits.

Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Rémi Bernon 2020-09-22 10:26:25 +02:00 committed by Alexandre Julliard
parent 9c8dce2155
commit a404eb7272
6 changed files with 7 additions and 7 deletions

View File

@ -163,7 +163,7 @@ static BOOL get_vis_rectangles( DC *dc_dst, struct bitblt_coords *dst,
return intersect_vis_rectangles( dst, src );
}
void free_heap_bits( struct gdi_image_bits *bits )
void CDECL free_heap_bits( struct gdi_image_bits *bits )
{
HeapFree( GetProcessHeap(), 0, bits->ptr );
}

View File

@ -565,7 +565,7 @@ static inline void unlock_surface( struct windrv_physdev *dev )
if (GetTickCount() - dev->start_ticks > FLUSH_PERIOD) dev->surface->funcs->flush( dev->surface );
}
static void unlock_bits_surface( struct gdi_image_bits *bits )
static void CDECL unlock_bits_surface( struct gdi_image_bits *bits )
{
struct window_surface *surface = bits->param;
surface->funcs->unlock( surface );

View File

@ -620,7 +620,7 @@ static inline void copy_bitmapinfo( BITMAPINFO *dst, const BITMAPINFO *src )
memcpy( dst, src, get_dib_info_size( src, DIB_RGB_COLORS ));
}
extern void free_heap_bits( struct gdi_image_bits *bits ) DECLSPEC_HIDDEN;
extern void CDECL free_heap_bits( struct gdi_image_bits *bits ) DECLSPEC_HIDDEN;
extern HMODULE gdi32_module DECLSPEC_HIDDEN;

View File

@ -148,7 +148,7 @@ static inline DWORD max_ascii85_size(DWORD size)
return (size + 3) / 4 * 5;
}
static void free_heap_bits( struct gdi_image_bits *bits )
static void CDECL free_heap_bits( struct gdi_image_bits *bits )
{
HeapFree( GetProcessHeap(), 0, bits->ptr );
}

View File

@ -914,12 +914,12 @@ BOOL CDECL X11DRV_StretchBlt( PHYSDEV dst_dev, struct bitblt_coords *dst,
}
static void free_heap_bits( struct gdi_image_bits *bits )
static void CDECL free_heap_bits( struct gdi_image_bits *bits )
{
HeapFree( GetProcessHeap(), 0, bits->ptr );
}
static void free_ximage_bits( struct gdi_image_bits *bits )
static void CDECL free_ximage_bits( struct gdi_image_bits *bits )
{
XFree( bits->ptr );
}

View File

@ -54,7 +54,7 @@ struct gdi_image_bits
{
void *ptr; /* pointer to the bits */
BOOL is_copy; /* whether this is a copy of the bits that can be modified */
void (*free)(struct gdi_image_bits *); /* callback for freeing the bits */
void (CDECL *free)(struct gdi_image_bits *); /* callback for freeing the bits */
void *param; /* extra parameter for callback private use */
};