Commit 7b07e015 authored by André Hentschel's avatar André Hentschel Committed by Alexandre Julliard

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

parent 859bf8d9
...@@ -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->bmiHeader) ); bmi->bmiHeader = ds.dsBmih;
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