From 616cacb0048b76385e265230406782db341e4a98 Mon Sep 17 00:00:00 2001 From: Nicolas Cellier Date: Fri, 28 Dec 2018 10:44:31 +0100 Subject: [PATCH] GetProcAddress takes simple byte string procedure name Until now, there's no such thing as internationalized procedure names. Probably because low level languages do not support non ASCII identifiers. --- platforms/win32/vm/sqWin32ExternalPrims.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/platforms/win32/vm/sqWin32ExternalPrims.c b/platforms/win32/vm/sqWin32ExternalPrims.c index ac18cf5c3c..3c05397ba5 100644 --- a/platforms/win32/vm/sqWin32ExternalPrims.c +++ b/platforms/win32/vm/sqWin32ExternalPrims.c @@ -69,19 +69,11 @@ ioFindExternalFunctionInAccessorDepthInto(char *lookupName, void *moduleHandle, void *f; char buffer[256]; -# ifdef UNICODE - f = GetProcAddress(moduleHandle, toUnicode(lookupName)); -# else f = GetProcAddress(moduleHandle, lookupName); -# endif if (f && accessorDepthPtr) { void *accessorDepthVarPtr; snprintf(buffer,256,"%sAccessorDepth",lookupName); -# ifdef UNICODE - accessorDepthVarPtr = GetProcAddress(moduleHandle, toUnicode(buffer)); -# else accessorDepthVarPtr = GetProcAddress(moduleHandle, buffer); -# endif /* The Slang machinery assumes accessor depth defaults to -1, which * means "no accessor depth". It saves space not outputting -1 depths. */ @@ -95,11 +87,7 @@ ioFindExternalFunctionInAccessorDepthInto(char *lookupName, void *moduleHandle, void * ioFindExternalFunctionIn(char *lookupName, void *moduleHandle) { -# ifdef UNICODE - return GetProcAddress((HANDLE)moduleHandle, toUnicode(lookupName)); -# else return GetProcAddress((HANDLE)moduleHandle, lookupName); -# endif } #endif /* SPURVM */