ID Number: Q67821
3.00
WINDOWS
docerr
SYMPTOMS
On page 7-14 of the "Microsoft Windows Software Development Kit
Reference Volume 2," the BITMAPINFOHEADER structure is documented
incorrectly. The second paragraph of the "Comments" section
contains the following incorrect code fragment:
pColor = ((LPSTR) pBitmapInfo + (WORD) (pBitmapInfo -> biSize))
CAUSE
This code is incorrect because the BITMAPINFO structure does not
have a biSize field.
RESOLUTION
This field must be referenced through the BITMAPINFOHEADER structure,
as follows:
pColor = ((LPSTR) pBitmapInfo +
(WORD) (pBitmapInfo -> bmiHeader.biSize))