Author: mjmartin
Date: Fri Dec 4 09:03:19 2009
New Revision: 44398
URL:
http://svn.reactos.org/svn/reactos?rev=44398&view=rev
Log:
[kernel32]
- GetProcessVersion: Assign ProcessHandle to NULL to prevent closing an invalid handle.
Patch by Alexander Yastrebov. See #4967.
Modified:
trunk/reactos/dll/win32/kernel32/process/proc.c
Modified: trunk/reactos/dll/win32/kernel32/process/proc.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/process…
==============================================================================
--- trunk/reactos/dll/win32/kernel32/process/proc.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/kernel32/process/proc.c [iso-8859-1] Fri Dec 4 09:03:19 2009
@@ -794,7 +794,7 @@
IMAGE_DOS_HEADER DosHeader;
PROCESS_BASIC_INFORMATION ProcessBasicInfo;
PVOID BaseAddress = NULL;
- HANDLE ProcessHandle;
+ HANDLE ProcessHandle = NULL;
NTSTATUS Status;
SIZE_T Count;
PEB Peb;