gdi32: StartDocA support for legacy apps with incomplete DOCINFOA parameter.
Daniel Mario Vega
dv5a at dc.uba.ar
Tue Feb 19 08:10:58 CST 2008
StartDocA should support legacy code that incorrectly fills DOCINFOA
parameter. (Verified against Windows XP)
DOCINFO structure used to be shorter in Win 3.1 days. Some legacy apps ported
to Win32 does not init/clear the fields "lpszDatatype" and "fwType"
correctly. We should verify these fields values before using them.
Sample legacy code here:
http://www.ddj.com/184409113?pgno=10
---
dlls/gdi32/printdrv.c | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 1fca4cf217c0e612872a57e597df0817a0d6d541.diff
Type: text/x-patch
Size: 1252 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20080219/bed4b5a8/attachment.bin
More information about the wine-patches
mailing list