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

This commit is contained in:
André Hentschel 2012-10-22 19:56:41 +02:00 committed by Alexandre Julliard
parent 72836c0b7e
commit 859bf8d9e9
1 changed files with 1 additions and 1 deletions

View File

@ -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;