initialize FileName and SourceBuffer

svn path=/trunk/; revision=30614
This commit is contained in:
Christoph von Wittich 2007-11-21 09:13:33 +00:00
parent fc02f8d454
commit 4f69fa75ae
2 changed files with 2 additions and 2 deletions

View file

@ -712,7 +712,7 @@ CabinetFindNext(PCAB_SEARCH Search)
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

View file

@ -41,7 +41,7 @@ GetSourcePaths(PUNICODE_STRING SourcePath,
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;