Adam Petaccia adam@tpetaccia.com writes:
- lfw = font->lfw;
- memcpy(&lfw, lfa, FIELD_OFFSET(LOGFONTA,lfFaceName));
- MultiByteToWideChar(CP_ACP, 0, lfa->lfFaceName, -1, lfw.lfFaceName, LF_FACESIZE);
The conversion should be the other way around, lfa is the output, and you don't really need lfw.