Marcus Meissner : regedit: Fixed a wrong buffer size.

Alexandre Julliard julliard at winehq.org
Mon Oct 25 10:58:19 CDT 2010


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

Author: Marcus Meissner <marcus at jet.franken.de>
Date:   Sun Oct 24 14:26:15 2010 +0200

regedit: Fixed a wrong buffer size.

---

 programs/regedit/tests/regedit.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/programs/regedit/tests/regedit.c b/programs/regedit/tests/regedit.c
index da8b1e0..2002e64 100644
--- a/programs/regedit/tests/regedit.c
+++ b/programs/regedit/tests/regedit.c
@@ -142,7 +142,7 @@ static void r_verify_reg_wsz(unsigned line, HKEY key, const char *subkey,
         return;
 
     MultiByteToWideChar(CP_ACP, 0, value_name, -1, value_nameW,
-            sizeof(value_nameW));
+            sizeof(value_nameW)/sizeof(value_nameW[0]));
 
     fnd_len = sizeof(fnd_value);
     lr = RegQueryValueExW(fnd_key, value_nameW, NULL, &fnd_type,




More information about the wine-cvs mailing list