3 Sep
2008
3 Sep
'08
9:37 a.m.
Hi Hans, Hans Leidekker wrote:
+static BOOL session_set_option( object_header_t *hdr, DWORD option, LPVOID buffer, DWORD buflen ) +{ + if (hdr->type != WINHTTP_HANDLE_TYPE_SESSION) + { + release_object( hdr ); + set_last_error( ERROR_WINHTTP_INCORRECT_HANDLE_TYPE ); + return FALSE; +
release_object call looks wrong here. Also, if you use vtbls properly, you shouldn't need to check the type here. Jacek