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:
@@ -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] = "";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user