gdi32: Make CreateDIBSection hotpatchable.

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Jacek Caban 2016-07-14 15:29:37 +02:00 committed by Alexandre Julliard
parent 6a237bdb60
commit 585f6074b0
1 changed files with 2 additions and 2 deletions

View File

@ -1478,8 +1478,8 @@ HBITMAP WINAPI CreateDIBitmap( HDC hdc, const BITMAPINFOHEADER *header,
/*********************************************************************** /***********************************************************************
* CreateDIBSection (GDI32.@) * CreateDIBSection (GDI32.@)
*/ */
HBITMAP WINAPI CreateDIBSection(HDC hdc, const BITMAPINFO *bmi, UINT usage, HBITMAP WINAPI DECLSPEC_HOTPATCH CreateDIBSection(HDC hdc, const BITMAPINFO *bmi, UINT usage,
VOID **bits, HANDLE section, DWORD offset) void **bits, HANDLE section, DWORD offset)
{ {
char buffer[FIELD_OFFSET( BITMAPINFO, bmiColors[256] )]; char buffer[FIELD_OFFSET( BITMAPINFO, bmiColors[256] )];
BITMAPINFO *info = (BITMAPINFO *)buffer; BITMAPINFO *info = (BITMAPINFO *)buffer;