mirror of
https://gitea.tendokyu.moe/TeamTofuShop/taitools.git
synced 2026-09-22 22:28:06 +03:00
fix compiling with msvc
This commit is contained in:
@@ -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
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user