Alexandre Julliard : advpack: Fixed a couple of typos in Unicode conversion .

Alexandre Julliard julliard at wine.codeweavers.com
Thu Apr 13 05:17:25 CDT 2006


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

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Thu Apr 13 12:10:56 2006 +0200

advpack: Fixed a couple of typos in Unicode conversion.

---

 dlls/advpack/reg.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/advpack/reg.c b/dlls/advpack/reg.c
index 9e87dcb..13911ce 100644
--- a/dlls/advpack/reg.c
+++ b/dlls/advpack/reg.c
@@ -102,13 +102,13 @@ static void strentry_atow(STRENTRYA *aen
     DWORD name_len, val_len;
 
     name_len = MultiByteToWideChar(CP_ACP, 0, aentry->pszName, -1, NULL, 0);
-    val_len = MultiByteToWideChar(CP_ACP, 0, aentry->pszName, -1, NULL, 0);
+    val_len = MultiByteToWideChar(CP_ACP, 0, aentry->pszValue, -1, NULL, 0);
 
     wentry->pszName = HeapAlloc(GetProcessHeap(), 0, name_len * sizeof(WCHAR));
     wentry->pszValue = HeapAlloc(GetProcessHeap(), 0, val_len * sizeof(WCHAR));
 
     MultiByteToWideChar(CP_ACP, 0, aentry->pszName, -1, wentry->pszName, name_len);
-    MultiByteToWideChar(CP_ACP, 0, aentry->pszName, -1, wentry->pszValue, val_len);
+    MultiByteToWideChar(CP_ACP, 0, aentry->pszValue, -1, wentry->pszValue, val_len);
 }
 
 static STRTABLEW *strtable_atow(const STRTABLEA *atable)




More information about the wine-cvs mailing list