Module: wine Branch: refs/heads/master Commit: 545309c97fef6272b86563ca7bd7dbc856681038 URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=545309c97fef6272b86563ca...
Author: James Hawkins truiken@gmail.com Date: Mon Jul 3 14:08:11 2006 -0700
wininet: Error out if hInternet is a bad handle.
---
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 11651e5..332e4f7 100644 --- a/dlls/wininet/internet.c +++ b/dlls/wininet/internet.c @@ -1989,6 +1989,11 @@ static BOOL INET_QueryOptionHelper(BOOL TRACE("(%p, 0x%08lx, %p, %p)\n", hInternet, dwOption, lpBuffer, lpdwBufferLength);
lpwhh = (LPWININETHANDLEHEADER) WININET_GetObject( hInternet ); + if (!lpwhh) + { + SetLastError(ERROR_INVALID_PARAMETER); + return FALSE; + }
switch (dwOption) {