Author: cwittich
Date: Wed Nov 21 12:13:33 2007
New Revision: 30614
URL:
http://svn.reactos.org/svn/reactos?rev=30614&view=rev
Log:
initialize FileName and SourceBuffer
Modified:
trunk/reactos/base/setup/usetup/cabinet.c
trunk/reactos/base/setup/usetup/drivesup.c
Modified: trunk/reactos/base/setup/usetup/cabinet.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/setup/usetup/cabinet.…
==============================================================================
--- trunk/reactos/base/setup/usetup/cabinet.c (original)
+++ trunk/reactos/base/setup/usetup/cabinet.c Wed Nov 21 12:13:33 2007
@@ -712,7 +712,7 @@
PCFFILE Prev;
ANSI_STRING AnsiString;
UNICODE_STRING UnicodeString;
- WCHAR FileName[MAX_PATH];
+ WCHAR FileName[MAX_PATH] = {L'\0'};
if( wcscmp( Search->Cabinet, CabinetName ) != 0 )
Search->File = 0; // restart search of cabinet has changed since last find
Modified: trunk/reactos/base/setup/usetup/drivesup.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/setup/usetup/drivesup…
==============================================================================
--- trunk/reactos/base/setup/usetup/drivesup.c (original)
+++ trunk/reactos/base/setup/usetup/drivesup.c Wed Nov 21 12:13:33 2007
@@ -41,7 +41,7 @@
OBJECT_ATTRIBUTES ObjectAttributes;
UNICODE_STRING LinkName;
UNICODE_STRING SourceName;
- WCHAR SourceBuffer[MAX_PATH];
+ WCHAR SourceBuffer[MAX_PATH] = {L'\0'};
HANDLE Handle;
NTSTATUS Status;
ULONG Length;