Alexander Dorofeyev : comctl32: Fix broken detection of non-empty string.

Alexandre Julliard julliard at winehq.org
Mon Oct 29 08:35:02 CDT 2007


Module: wine
Branch: master
Commit: 35ff6d675000333db57c27d2975a850eec25dd2f
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=35ff6d675000333db57c27d2975a850eec25dd2f

Author: Alexander Dorofeyev <alexd14 at hushmail.com>
Date:   Sun Oct 28 22:56:06 2007 -0700

comctl32: Fix broken detection of non-empty string.

---

 dlls/comctl32/toolbar.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/comctl32/toolbar.c b/dlls/comctl32/toolbar.c
index b55298a..429444e 100644
--- a/dlls/comctl32/toolbar.c
+++ b/dlls/comctl32/toolbar.c
@@ -6332,7 +6332,7 @@ static LRESULT TOOLBAR_TTGetDispInfo (TOOLBAR_INFO *infoPtr, NMTTDISPINFOW *lpnm
                 return 0;
             }
         }
-        else if (len > 0)
+        else if (tbgit.pszText[0])
         {
             MultiByteToWideChar(CP_ACP, 0, tbgit.pszText, -1,
                                 lpnmtdi->lpszText, sizeof(lpnmtdi->szText)/sizeof(lpnmtdi->szText[0]));




More information about the wine-cvs mailing list