Commit 859bf8d9 authored by André Hentschel's avatar André Hentschel Committed by Alexandre Julliard

wing32: Use the correct size for memcpy (coverity).

parent 72836c0b
...@@ -72,7 +72,7 @@ void * WINAPI WinGGetDIBPointer( HBITMAP hbmp, BITMAPINFO *bmi ) ...@@ -72,7 +72,7 @@ void * WINAPI WinGGetDIBPointer( HBITMAP hbmp, BITMAPINFO *bmi )
if (GetObjectW( hbmp, sizeof(ds), &ds ) == sizeof(ds)) 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 ds.dsBm.bmBits;
} }
return NULL; return NULL;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment