Skip to content

Commit b86b0d1

Browse files
committed
[KERNEL32]
- 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
1 parent 8b5ab2d commit b86b0d1

File tree

1 file changed

+1
-1
lines changed
  • reactos/dll/win32/kernel32/misc

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ BasepLoadLibraryAsDatafile(PWSTR Path, LPCWSTR Name, HMODULE *hModule)
275275
HANDLE hMapping;
276276
NTSTATUS Status;
277277
PVOID lpBaseAddress = NULL;
278-
SIZE_T ViewSize;
278+
SIZE_T ViewSize = 0;
279279
//PUNICODE_STRING OriginalName;
280280
//UNICODE_STRING dotDLL = RTL_CONSTANT_STRING(L".DLL");
281281

0 commit comments

Comments
 (0)