1
0
mirror of https://github.com/simh/simh.git synced 2026-01-26 04:01:38 +00:00

SCP: Avoid compile errors when compiled with UNICODE defined

On windows all platform specific APIs deliberately use ANSI APIs.
Fix these few inconsistencies.
This commit is contained in:
Mark Pizzolato
2022-11-14 17:18:55 -10:00
parent ab610fa0cd
commit 4377d93049
3 changed files with 8 additions and 8 deletions

View File

@@ -1325,11 +1325,11 @@ int load_pcap(void) {
/* attempt to load DLL */
#ifdef _WIN32
if (1) {
BOOL(WINAPI *p_SetDllDirectory)(LPCTSTR);
UINT(WINAPI *p_GetSystemDirectory)(LPTSTR lpBuffer, UINT uSize);
BOOL(WINAPI *p_SetDllDirectory)(const char *);
UINT(WINAPI *p_GetSystemDirectory)(char * lpBuffer, UINT uSize);
p_SetDllDirectory = (BOOL(WINAPI *)(LPCTSTR)) GetProcAddress(GetModuleHandleA("kernel32.dll"), "SetDllDirectoryA");
p_GetSystemDirectory = (UINT(WINAPI *)(LPTSTR, UINT)) GetProcAddress(GetModuleHandleA("kernel32.dll"), "GetSystemDirectoryA");
p_SetDllDirectory = (BOOL(WINAPI *)(const char *)) GetProcAddress(GetModuleHandleA("kernel32.dll"), "SetDllDirectoryA");
p_GetSystemDirectory = (UINT(WINAPI *)(char *, UINT)) GetProcAddress(GetModuleHandleA("kernel32.dll"), "GetSystemDirectoryA");
if (p_SetDllDirectory && p_GetSystemDirectory) {
char npcap_path[512] = "";