updated some wrong prefix

This commit is contained in:
hyung-hwan 2018-11-03 15:59:49 +00:00
parent 140682dfc4
commit 1a60b897f1

View File

@ -12,7 +12,7 @@
# include <io.h> # include <io.h>
# include <errno.h> # include <errno.h>
# if defined(MOO_HAVE_CFG_H) && defined(MOO_ENABLE_LIBLTDL) # if defined(HCL_HAVE_CFG_H) && defined(HCL_ENABLE_LIBLTDL)
# include <ltdl.h> # include <ltdl.h>
# define USE_LTDL # define USE_LTDL
# else # else
@ -714,8 +714,8 @@ void hcl_vmprim_sleep (hcl_t* hcl, const hcl_ntime_t* dur)
#elif defined(USE_WIN_DLL) #elif defined(USE_WIN_DLL)
# define sys_dl_error() win_dlerror() # define sys_dl_error() win_dlerror()
# define sys_dl_open(x) LoadLibraryExA(x, MOO_NULL, 0) # define sys_dl_open(x) LoadLibraryExA(x, HCL_NULL, 0)
# define sys_dl_openext(x) LoadLibraryExA(x, MOO_NULL, 0) # define sys_dl_openext(x) LoadLibraryExA(x, HCL_NULL, 0)
# define sys_dl_close(x) FreeLibrary(x) # define sys_dl_close(x) FreeLibrary(x)
# define sys_dl_getsym(x,n) GetProcAddress(x,n) # define sys_dl_getsym(x,n) GetProcAddress(x,n)
@ -731,14 +731,14 @@ void hcl_vmprim_sleep (hcl_t* hcl, const hcl_ntime_t* dur)
static const char* win_dlerror (void) static const char* win_dlerror (void)
{ {
/* TODO: handle wchar_t, moo_ooch_t etc? */ /* TODO: handle wchar_t, hcl_ooch_t etc? */
static char buf[256]; static char buf[256];
DWORD rc; DWORD rc;
rc = FormatMessageA ( rc = FormatMessageA (
FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS, FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS,
NULL, GetLastError(), MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), NULL, GetLastError(), MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT),
buf, MOO_COUNTOF(buf), MOO_NULL buf, HCL_COUNTOF(buf), HCL_NULL
); );
while (rc > 0 && buf[rc - 1] == '\r' || buf[rc - 1] == '\n') while (rc > 0 && buf[rc - 1] == '\r' || buf[rc - 1] == '\n')
{ {