wing32: Use the correct size for memcpy (coverity).
This commit is contained in:
parent
72836c0b7e
commit
859bf8d9e9
|
@ -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) );
|
||||
memcpy( &bmi->bmiHeader, &ds.dsBmih, sizeof(bmi->bmiHeader) );
|
||||
return ds.dsBm.bmBits;
|
||||
}
|
||||
return NULL;
|
||||
|
|
Loading…
Reference in New Issue