Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
GEEKiDoS committed Jul 27, 2024
1 parent 3dac12e commit f0f1021
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/client/component/iidx/i_patches.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,13 @@ namespace iidx::patches
*(reinterpret_cast<uint32_t*>(hConnect) + 2) = 0xDDDDDDDD;

// ignore cert error
DWORD dwFlags =
DWORD flags =
SECURITY_FLAG_IGNORE_UNKNOWN_CA |
SECURITY_FLAG_IGNORE_CERT_WRONG_USAGE |
SECURITY_FLAG_IGNORE_CERT_CN_INVALID |
SECURITY_FLAG_IGNORE_CERT_DATE_INVALID;

WinHttpSetOption(request, WINHTTP_OPTION_SECURITY_FLAGS, &dwFlags, sizeof(dwFlags));
WinHttpSetOption(request, WINHTTP_OPTION_SECURITY_FLAGS, &flags, sizeof(flags));

// overwrite host
WinHttpAddRequestHeaders(request,
Expand Down

0 comments on commit f0f1021

Please sign in to comment.