gdi32: Don't free bitmap bits when changing the owner, we may still have pointers to them.
This commit is contained in:
parent
24ac8c66bb
commit
8277ac3f7c
|
@ -574,8 +574,6 @@ static void set_initial_bitmap_bits( HBITMAP hbitmap, BITMAPOBJ *bmp )
|
|||
|
||||
get_ddb_bitmapinfo( bmp, info );
|
||||
SetDIBits( 0, hbitmap, 0, bmp->bitmap.bmHeight, bmp->bitmap.bmBits, info, DIB_RGB_COLORS );
|
||||
HeapFree( GetProcessHeap(), 0, bmp->bitmap.bmBits );
|
||||
bmp->bitmap.bmBits = NULL;
|
||||
}
|
||||
|
||||
/***********************************************************************
|
||||
|
|
Loading…
Reference in New Issue