Sebastian Lackner : kernel32: Prevent endless loop if NtQuerySystemInformation fails.
Alexandre Julliard
julliard at winehq.org
Wed Jan 1 14:24:21 CST 2014
Module: wine
Branch: master
Commit: 3caa4e035d2802bab7bb39c2bd5b5abb5a76c8e4
URL: http://source.winehq.org/git/wine.git/?a=commit;h=3caa4e035d2802bab7bb39c2bd5b5abb5a76c8e4
Author: Sebastian Lackner <sebastian at fds-team.de>
Date: Tue Dec 31 17:48:42 2013 +0100
kernel32: Prevent endless loop if NtQuerySystemInformation fails.
---
dlls/kernel32/toolhelp.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/kernel32/toolhelp.c b/dlls/kernel32/toolhelp.c
index 94c1a78..49e14ff 100644
--- a/dlls/kernel32/toolhelp.c
+++ b/dlls/kernel32/toolhelp.c
@@ -209,7 +209,7 @@ static BOOL fetch_process_thread( DWORD flags, SYSTEM_PROCESS_INFORMATION** pspi
break;
default:
SetLastError( RtlNtStatusToDosError( status ) );
- break;
+ return FALSE;
}
}
}
More information about the wine-cvs
mailing list