user: fix DrawTextExA/W on empty strings.

Juan Lang juan_lang at yahoo.com
Wed Jan 25 09:49:57 CST 2006


Hi Rein,

-    if (!str) return 0;
+    if (!str || count == 0) return 0;
     if (count == -1) count = strlenW(str);
-    if (count == 0) return 0;
+    if (count == 0) {
+        if( flags & DT_CALCRECT) {
+            rect->right = rect->left;
+            rect->bottom = rect->top;
+        }
+        return 0;
+    }

This block will never be reached because of the if (!str || count == 0)
test above.

--Juan

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



More information about the wine-devel mailing list