Set cbBits in the EMRCREATEDIBPATTERNBRUSHPT structure when writing an

EMF record.
oldstable
Mike McCormack 2002-08-17 00:26:57 +00:00 committed by Alexandre Julliard
parent 0fc0ef2570
commit 368fab1432
1 changed files with 1 additions and 0 deletions

View File

@ -85,6 +85,7 @@ DWORD EMFDRV_CreateBrushIndirect( PHYSDEV dev, HBRUSH hBrush )
emr->offBmi = sizeof(EMRCREATEDIBPATTERNBRUSHPT);
emr->cbBmi = biSize;
emr->offBits = sizeof(EMRCREATEDIBPATTERNBRUSHPT) + biSize;
emr->cbBits = bmSize;
memcpy((char *)emr + sizeof(EMRCREATEDIBPATTERNBRUSHPT), info,
biSize + bmSize );