[Bug 12226] New: DrawTextA/W + DT_CALCRECT + Empty String returns 0
http://bugs.winehq.org/show_bug.cgi?id=12226 Summary: DrawTextA/W + DT_CALCRECT + Empty String returns 0 Product: Wine Version: 0.9.58. Platform: PC OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: user32 AssignedTo: wine-bugs(a)winehq.org ReportedBy: J.Duttke(a)web.de If I call DrawTextA or DrawTextW to calculate the dimensions of a string, the return value of Wine is 0, if the string is empty. In Windows, the height of a single line get returned in such a case. 0 is the value which indicate that the function failed, but since it did not failed in Wine, it should not return 0. That's how I can reproduce it in VB6: Dim s As String Dim r As RECT MsgBox DrawTextA(Me.hDC, s, -1, r, DT_CALCRECT Or DT_LEFT Or DT_SINGLELINE) -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=12226 Jens Duttke <J.Duttke(a)web.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |J.Duttke(a)web.de -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=12226 James Hawkins <truiken(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC|J.Duttke(a)web.de | --- Comment #1 from James Hawkins <truiken(a)gmail.com> 2008-03-26 10:59:30 --- You're already cc'ed as the reporter of the bug. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=12226 --- Comment #2 from Lei Zhang <thestig(a)google.com> 2008-03-26 12:51:33 --- Can you provide a simple test app (with source) to demonstrate the problem? -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=12226 --- Comment #3 from Jens Duttke <J.Duttke(a)web.de> 2008-03-26 14:05:00 --- Created an attachment (id=11670) --> (http://bugs.winehq.org/attachment.cgi?id=11670) Example Application with Source code In this ZIP-Archive you'll find 3 files: Projekt1.vbp = the Visual Basic 6 project file Form1.frm = the Form defintion file, with the code in the Form_Load event Projekt1.exe = the compiled version of the project Remember that VB6 executables require the VB6 runtime. After starting the program 2 message boxes will be shown with the return values of the DrawText-API functions. In Windows: DrawTextA return value: 13 DrawTextW return value: 13 In Wine: DrawTextA return value: 0 DrawTextW return value: 0 -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=12226 Austin English <austinenglish(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Keywords| |download, source --- Comment #4 from Austin English <austinenglish(a)gmail.com> 2008-03-26 15:54:46 --- Confirming in git. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=12226 --- Comment #5 from Lei Zhang <thestig(a)google.com> 2008-03-26 17:25:53 --- converted to an automated test case: http://www.winehq.org/pipermail/wine-patches/2008-March/052250.html -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=12226 Austin English <austinenglish(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #6 from Austin English <austinenglish(a)gmail.com> 2008-12-24 11:19:42 --- Fixed a while back, by 48ad706c08a9f166f72c86e909bf365137ca6e10. Conformance test and your test app both work fine in git. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=12226 Alexandre Julliard <julliard(a)winehq.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED --- Comment #7 from Alexandre Julliard <julliard(a)winehq.org> 2009-01-02 10:33:24 --- Closing bugs fixed in 1.1.12. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
participants (1)
-
wine-bugs@winehq.org