[KERNEL32]
authorAleksey Bragin <aleksey@reactos.org>
Sun, 1 May 2011 22:00:14 +0000 (22:00 +0000)
committerAleksey Bragin <aleksey@reactos.org>
Sun, 1 May 2011 22:00:14 +0000 (22:00 +0000)
- Initialize ViewSize to 0 when mapping view of section. Fixes DLLs registration problems in 2nd stage (happening all the time with the ldr rewrite).

svn path=/trunk/; revision=51539

reactos/dll/win32/kernel32/misc/ldr.c

index 03c3ed1..b383f1d 100644 (file)
@@ -275,7 +275,7 @@ BasepLoadLibraryAsDatafile(PWSTR Path, LPCWSTR Name, HMODULE *hModule)
     HANDLE hMapping;
     NTSTATUS Status;
     PVOID lpBaseAddress = NULL;
-    SIZE_T ViewSize;
+    SIZE_T ViewSize = 0;
     //PUNICODE_STRING OriginalName;
     //UNICODE_STRING dotDLL = RTL_CONSTANT_STRING(L".DLL");