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:
parent
9c8dce2155
commit
a404eb7272
|
@ -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 );
|
||||
}
|
||||
|
|
|
@ -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 );
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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 );
|
||||
}
|
||||
|
|
|
@ -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 );
|
||||
}
|
||||
|
|
|
@ -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 */
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue