commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject svn commit: r769380 - /commons/sandbox/runtime/trunk/src/main/native/os/win32/main.c
Date Tue, 28 Apr 2009 12:55:06 GMT
Author: mturk
Date: Tue Apr 28 12:55:05 2009
New Revision: 769380

URL: http://svn.apache.org/viewvc?rev=769380&view=rev
Log:
Use the WSTR size

Modified:
    commons/sandbox/runtime/trunk/src/main/native/os/win32/main.c

Modified: commons/sandbox/runtime/trunk/src/main/native/os/win32/main.c
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/os/win32/main.c?rev=769380&r1=769379&r2=769380&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/native/os/win32/main.c (original)
+++ commons/sandbox/runtime/trunk/src/main/native/os/win32/main.c Tue Apr 28 12:55:05 2009
@@ -274,7 +274,7 @@
     if (!RegCreateKeyA(HKEY_LOCAL_MACHINE, event_key, &key)) {
         RegSetValueExW(key, L"EventMessageFile", 0, REG_SZ,
                        (LPBYTE)&dll_file_name[0],
-                       lstrlenW(dll_file_name) + 1);
+                       (lstrlenW(dll_file_name) + 1) * sizeof(wchar_t));
         ts = EVENTLOG_ERROR_TYPE | EVENTLOG_WARNING_TYPE |
              EVENTLOG_INFORMATION_TYPE;
 



Mime
View raw message