Fix test for invalid WinHTTP session handle
INVALID_HANDLE_VALUE is not used for WinHTTP handles and WinHttpOpen() returns NULL (0) and not INVALID_HANDLE_VALUE (-1).
This commit is contained in:
@@ -458,7 +458,7 @@ wxWebSessionWinHTTP::wxWebSessionWinHTTP():
|
|||||||
|
|
||||||
wxWebSessionWinHTTP::~wxWebSessionWinHTTP()
|
wxWebSessionWinHTTP::~wxWebSessionWinHTTP()
|
||||||
{
|
{
|
||||||
if ( m_handle != INVALID_HANDLE_VALUE )
|
if ( m_handle )
|
||||||
::WinHttpCloseHandle(m_handle);
|
::WinHttpCloseHandle(m_handle);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user