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:
Vadim Zeitlin
2021-01-09 18:44:05 +01:00
parent 5d256988be
commit 8c0855ad25

View File

@@ -458,7 +458,7 @@ wxWebSessionWinHTTP::wxWebSessionWinHTTP():
wxWebSessionWinHTTP::~wxWebSessionWinHTTP()
{
if ( m_handle != INVALID_HANDLE_VALUE )
if ( m_handle )
::WinHttpCloseHandle(m_handle);
}