Author: sginsberg
Date: Fri Aug 7 21:19:46 2009
New Revision: 42475
URL:
http://svn.reactos.org/svn/reactos?rev=42475&view=rev
Log:
Move variable initialization to top of scope.
Welcome to MSVC, eventlog. It is safer here.
Modified:
trunk/reactos/base/services/eventlog/rpc.c
Modified: trunk/reactos/base/services/eventlog/rpc.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/services/eventlog/rpc…
==============================================================================
--- trunk/reactos/base/services/eventlog/rpc.c [iso-8859-1] (original)
+++ trunk/reactos/base/services/eventlog/rpc.c [iso-8859-1] Fri Aug 7 21:19:46 2009
@@ -369,6 +369,7 @@
DWORD dwStringsSize = 0;
DWORD dwError = ERROR_SUCCESS;
WCHAR *lpStrings;
+ int pos = 0;
lpEventSource = ElfGetEventLogSourceEntryByHandle(LogHandle);
if (!lpEventSource)
@@ -418,7 +419,6 @@
return STATUS_NO_MEMORY;
}
- int pos = 0;
for (i = 0; i < NumStrings; i++)
{
wcscpy((WCHAR*)(lpStrings + pos), Strings[i]->Buffer);