http://bugs.winehq.org/show_bug.cgi?id=21134
--- Comment #7 from Jeremy White jwhite@codeweavers.com 2009-12-23 11:26:10 --- Should be fixed by the 2 patch series submitted to wine-patches here: http://www.winehq.org/pipermail/wine-patches/2009-December/083156.html http://www.winehq.org/pipermail/wine-patches/2009-December/083157.html
For the archives, the issue is that the Delphi application incorrectly uses a hardcoded buffer size of 255 in passing to GetPrinterDriverA. The needed size is now correctly larger than that in Wine, and so this call now fails.
On Windows, on failure, the pointers are set to null, protecting against a crash. Wine didn't do that (but now it does).