You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by mt...@apache.org on 2009/04/28 14:57:18 UTC

svn commit: r769381 - /commons/sandbox/runtime/trunk/src/main/native/os/win32/main.c

Author: mturk
Date: Tue Apr 28 12:57:18 2009
New Revision: 769381

URL: http://svn.apache.org/viewvc?rev=769381&view=rev
Log:
Use the EXPAND_SZ for EventMessageFile

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=769381&r1=769380&r2=769381&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:57:18 2009
@@ -272,7 +272,7 @@
              "SYSTEM\\CurrentControlSet\\Services\\EventLog\\Application\\");
     lstrcatA(event_key, domain);
     if (!RegCreateKeyA(HKEY_LOCAL_MACHINE, event_key, &key)) {
-        RegSetValueExW(key, L"EventMessageFile", 0, REG_SZ,
+        RegSetValueExW(key, L"EventMessageFile", 0, REG_EXPAND_SZ,
                        (LPBYTE)&dll_file_name[0],
                        (lstrlenW(dll_file_name) + 1) * sizeof(wchar_t));
         ts = EVENTLOG_ERROR_TYPE | EVENTLOG_WARNING_TYPE |