Alexandre Julliard : ntdll:
Add check for null pointer in NtQuerySystemInformation(
SystemModuleInformation).
Alexandre Julliard
julliard at wine.codeweavers.com
Wed Jul 4 06:56:57 CDT 2007
Module: wine
Branch: master
Commit: 68a6182188e2cf83f9c0647abc5f2446bbe2408d
URL: http://source.winehq.org/git/wine.git/?a=commit;h=68a6182188e2cf83f9c0647abc5f2446bbe2408d
Author: Alexandre Julliard <julliard at winehq.org>
Date: Wed Jul 4 12:07:22 2007 +0200
ntdll: Add check for null pointer in NtQuerySystemInformation(SystemModuleInformation).
---
dlls/ntdll/nt.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/dlls/ntdll/nt.c b/dlls/ntdll/nt.c
index ed707c0..a303dcf 100644
--- a/dlls/ntdll/nt.c
+++ b/dlls/ntdll/nt.c
@@ -845,7 +845,8 @@ NTSTATUS WINAPI NtQuerySystemInformation(
break;
case SystemModuleInformation:
/* FIXME: should be system-wide */
- ret = LdrQueryProcessModuleInformation( SystemInformation, Length, &len );
+ if (!SystemInformation) ret = STATUS_ACCESS_VIOLATION;
+ else ret = LdrQueryProcessModuleInformation( SystemInformation, Length, &len );
break;
case SystemHandleInformation:
{
More information about the wine-cvs
mailing list