Huw Davies : comctl32: Fix a typo in the TB_SAVERESTOREA handler.

Alexandre Julliard julliard at wine.codeweavers.com
Wed May 20 10:04:12 CDT 2015


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

Author: Huw Davies <huw at codeweavers.com>
Date:   Wed May 20 12:02:10 2015 +0100

comctl32: Fix a typo in the TB_SAVERESTOREA handler.

---

 dlls/comctl32/toolbar.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/comctl32/toolbar.c b/dlls/comctl32/toolbar.c
index ff52dc7..ecf0604 100644
--- a/dlls/comctl32/toolbar.c
+++ b/dlls/comctl32/toolbar.c
@@ -4204,7 +4204,7 @@ TOOLBAR_SaveRestoreA (TOOLBAR_INFO *infoPtr, WPARAM wParam, const TBSAVEPARAMSA
 
     len = MultiByteToWideChar(CP_ACP, 0, lpSave->pszSubKey, -1, NULL, 0);
     pszSubKey = Alloc(len * sizeof(WCHAR));
-    if (pszSubKey) goto exit;
+    if (!pszSubKey) goto exit;
     MultiByteToWideChar(CP_ACP, 0, lpSave->pszSubKey, -1, pszSubKey, len);
 
     len = MultiByteToWideChar(CP_ACP, 0, lpSave->pszValueName, -1, NULL, 0);




More information about the wine-cvs mailing list