mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 10:41:12 +00:00
gdi32: Avoid using uninitialized value in DIB pattern enhmetafile record.
This commit is contained in:
parent
c65de04789
commit
fd40d65cfa
1 changed files with 1 additions and 1 deletions
|
@ -172,11 +172,11 @@ DWORD EMFDRV_CreateBrushIndirect( PHYSDEV dev, HBRUSH hBrush )
|
|||
emr->offBmi = sizeof( EMRCREATEDIBPATTERNBRUSHPT );
|
||||
emr->cbBmi = info_size;
|
||||
}
|
||||
emr->emr.nSize = emr->offBits + emr->cbBits;
|
||||
emr->ihBrush = index = EMFDRV_AddHandle( dev, hBrush );
|
||||
emr->iUsage = usage;
|
||||
emr->offBits = emr->offBmi + emr->cbBmi;
|
||||
emr->cbBits = info->bmiHeader.biSizeImage;
|
||||
emr->emr.nSize = emr->offBits + emr->cbBits;
|
||||
|
||||
memcpy( (BYTE *)emr + emr->offBmi, info, emr->cbBmi );
|
||||
memcpy( (BYTE *)emr + emr->offBits, bits, emr->cbBits );
|
||||
|
|
Loading…
Reference in a new issue