Module: wine Branch: master Commit: b7f3aa61f43c5beac32ef51285dd0dee78df491c URL: http://source.winehq.org/git/wine.git/?a=commit;h=b7f3aa61f43c5beac32ef51285...
Author: Marcus Meissner marcus@jet.franken.de Date: Wed May 26 09:53:55 2010 +0200
wininet: Check for NULL lpwhh (Coverity).
---
dlls/wininet/internet.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/dlls/wininet/internet.c b/dlls/wininet/internet.c index 5b1913a..fd93276 100644 --- a/dlls/wininet/internet.c +++ b/dlls/wininet/internet.c @@ -2581,6 +2581,11 @@ BOOL WINAPI InternetSetOptionW(HINTERNET hInternet, DWORD dwOption, } case INTERNET_OPTION_CONTEXT_VALUE: { + if (!lpwhh) + { + SetLastError(ERROR_INTERNET_INCORRECT_HANDLE_TYPE); + return FALSE; + } if (!lpBuffer || dwBufferLength != sizeof(DWORD_PTR)) { SetLastError(ERROR_INVALID_PARAMETER);