diff --git a/reactos/base/setup/usetup/cabinet.c b/reactos/base/setup/usetup/cabinet.c index 2b872f4c295..db6dfa63327 100644 --- a/reactos/base/setup/usetup/cabinet.c +++ b/reactos/base/setup/usetup/cabinet.c @@ -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 diff --git a/reactos/base/setup/usetup/drivesup.c b/reactos/base/setup/usetup/drivesup.c index 5614f89c329..30a398ff993 100644 --- a/reactos/base/setup/usetup/drivesup.c +++ b/reactos/base/setup/usetup/drivesup.c @@ -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;