fix compiling with msvc

This commit is contained in:
Hay1tsme
2025-04-26 01:02:10 -04:00
parent 243ee06326
commit a5241fbb4e
2 changed files with 4 additions and 9 deletions
-5
View File
@@ -32,11 +32,6 @@ if meson.get_compiler('c').get_id() != 'msvc'
'-static-libgcc',
language: 'c',
)
else
add_project_arguments(
'/wd4090', # different 'const' qualifiers
language: 'c',
)
endif
cc = meson.get_compiler('c')
+4 -4
View File
@@ -82,7 +82,7 @@ static void ca_error_cb(HINTERNET hInternet, DWORD_PTR dwContext, DWORD dwIntern
static const struct hook_symbol cert_syms[] = {
{
.name = "CertFindCertificateInStore",
.patch = my_CertFindCertificateInStore,
.patch = (void *) my_CertFindCertificateInStore,
.link = (void **) &next_CertFindCertificateInStore,
},
{
@@ -116,13 +116,13 @@ HRESULT cert_hook_init(const struct cert_config *cfg)
proc_addr_table_push(
NULL,
"crypt32.dll",
(struct hook_symbol *) cert_syms,
cert_syms,
_countof(cert_syms));
proc_addr_table_push(
NULL,
"Winhttp.dll",
(struct hook_symbol *) winhttp_syms,
winhttp_syms,
_countof(winhttp_syms));
if (cfg->path[0] != L'\0') {
@@ -196,7 +196,7 @@ void cert_hook_insert_hooks(HMODULE target)
hook_table_apply(
target,
"winhttp.dll",
(struct hook_symbol *) winhttp_syms,
winhttp_syms,
_countof(winhttp_syms));
}