From 169e5ddf44993c76f0bf2df9032f294b3ef4fd96 Mon Sep 17 00:00:00 2001 From: Hay1tsme Date: Tue, 4 Feb 2025 11:40:23 -0500 Subject: [PATCH] fix msvc compile --- board/j9100647a.h | 4 ++-- hooklib/dns.c | 6 +++--- platform/cert.c | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/board/j9100647a.h b/board/j9100647a.h index 9f79e6b..847c119 100644 --- a/board/j9100647a.h +++ b/board/j9100647a.h @@ -9,13 +9,13 @@ // Mayhaps move this to a seperate thing in the event a second USB IO // providor is needed? -struct usbio_dev { +//struct usbio_dev { // TODO: populate with handler functions for various commands that // come in via winusb // It might also just do a mass bulk update, in which case we need // a struct that encompases all the digital and analog I/O pins and // their states. -}; +//}; #pragma pack(pop) diff --git a/hooklib/dns.c b/hooklib/dns.c index 6c43806..4cfe3fe 100644 --- a/hooklib/dns.c +++ b/hooklib/dns.c @@ -68,7 +68,7 @@ static int WSAAPI hook_getaddrinfo( const ADDRINFOA *pHints, ADDRINFOA **ppResult); -static WINHTTPAPI BOOL hook_WinHttpCrackUrl( +static BOOL hook_WinHttpCrackUrl( LPCWSTR pwszUrl, DWORD dwUrlLength, DWORD dwFlags, @@ -103,7 +103,7 @@ static int (WSAAPI *next_getaddrinfo)( const ADDRINFOA *pHints, ADDRINFOA **ppResult); -static WINHTTPAPI BOOL (*next_WinHttpCrackUrl)( +static BOOL (*next_WinHttpCrackUrl)( LPCWSTR pwszUrl, DWORD dwUrlLength, DWORD dwFlags, @@ -492,7 +492,7 @@ end: return result; } -static WINHTTPAPI BOOL hook_WinHttpCrackUrl( +static BOOL hook_WinHttpCrackUrl( LPCWSTR pwszUrl, DWORD dwUrlLength, DWORD dwFlags, diff --git a/platform/cert.c b/platform/cert.c index 758e045..82fa5a7 100644 --- a/platform/cert.c +++ b/platform/cert.c @@ -49,7 +49,7 @@ HCERTSTORE WINAPI hook_CertOpenStore( const void *pvPara ); -WINHTTPAPI BOOL hook_WinHttpSetOption( +static BOOL hook_WinHttpSetOption( HINTERNET hInternet, DWORD dwOption, LPVOID lpBuffer, @@ -73,7 +73,7 @@ HCERTSTORE (WINAPI *next_CertOpenStore)( const void *pvPara ); -WINHTTPAPI BOOL (*next_WinHttpSetOption)( +static BOOL (*next_WinHttpSetOption)( HINTERNET hInternet, DWORD dwOption, LPVOID lpBuffer,