mirror of
https://github.com/reactos/reactos.git
synced 2025-05-08 19:27:00 +00:00
Move variable initialization to top of scope.
Welcome to MSVC, eventlog. It is safer here. svn path=/trunk/; revision=42475
This commit is contained in:
parent
5c28e5923e
commit
0787f783d7
1 changed files with 1 additions and 1 deletions
|
@ -369,6 +369,7 @@ NTSTATUS ElfrReportEventW(
|
||||||
DWORD dwStringsSize = 0;
|
DWORD dwStringsSize = 0;
|
||||||
DWORD dwError = ERROR_SUCCESS;
|
DWORD dwError = ERROR_SUCCESS;
|
||||||
WCHAR *lpStrings;
|
WCHAR *lpStrings;
|
||||||
|
int pos = 0;
|
||||||
|
|
||||||
lpEventSource = ElfGetEventLogSourceEntryByHandle(LogHandle);
|
lpEventSource = ElfGetEventLogSourceEntryByHandle(LogHandle);
|
||||||
if (!lpEventSource)
|
if (!lpEventSource)
|
||||||
|
@ -418,7 +419,6 @@ NTSTATUS ElfrReportEventW(
|
||||||
return STATUS_NO_MEMORY;
|
return STATUS_NO_MEMORY;
|
||||||
}
|
}
|
||||||
|
|
||||||
int pos = 0;
|
|
||||||
for (i = 0; i < NumStrings; i++)
|
for (i = 0; i < NumStrings; i++)
|
||||||
{
|
{
|
||||||
wcscpy((WCHAR*)(lpStrings + pos), Strings[i]->Buffer);
|
wcscpy((WCHAR*)(lpStrings + pos), Strings[i]->Buffer);
|
||||||
|
|
Loading…
Reference in a new issue