mirror of
git://source.winehq.org/git/wine.git
synced 2024-08-31 16:43:38 +00:00
wing32: Use the correct size for memcpy (coverity).
This commit is contained in:
parent
859bf8d9e9
commit
7b07e015a9
|
@ -72,7 +72,7 @@ void * WINAPI WinGGetDIBPointer( HBITMAP hbmp, BITMAPINFO *bmi )
|
|||
|
||||
if (GetObjectW( hbmp, sizeof(ds), &ds ) == sizeof(ds))
|
||||
{
|
||||
memcpy( &bmi->bmiHeader, &ds.dsBmih, sizeof(bmi->bmiHeader) );
|
||||
bmi->bmiHeader = ds.dsBmih;
|
||||
return ds.dsBm.bmBits;
|
||||
}
|
||||
return NULL;
|
||||
|
|
Loading…
Reference in a new issue