| commit | b7f3aa61f43c5beac32ef51285dd0dee78df491c | [log] [tgz] |
|---|---|---|
| author | Marcus Meissner <marcus@jet.franken.de> | Wed May 26 09:53:55 2010 +0200 |
| committer | Alexandre Julliard <julliard@winehq.org> | Thu May 27 15:22:12 2010 +0200 |
| tree | 61b84ab79b76632d0303cc43e282256e673e5439 | |
| parent | 7bc121c8802299d88ef01b0de8063247f936f4dd [diff] |
wininet: Check for NULL lpwhh (Coverity).
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 @@ } 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);