From d44a1d08673c6f78df162a76616152fc2ea7cbd5 Mon Sep 17 00:00:00 2001 From: Adam Date: Thu, 11 Aug 2011 23:10:08 -0400 Subject: Fixed Windows runtime problems --- include/modules.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/modules.h b/include/modules.h index 2bf16477b..2592b5622 100644 --- a/include/modules.h +++ b/include/modules.h @@ -26,7 +26,7 @@ # define dlsym(file, symbol) (HMODULE)GetProcAddress(file, symbol) # define dlclose(file) FreeLibrary(file) ? 0 : 1 # define ano_modclearerr() SetLastError(0) -# define ano_moderr() Anope::LastError().c_str() +# define ano_moderr() (Anope::LastError().empty() ? NULL : Anope::LastError().c_str()) #else typedef void * ano_module_t; -- cgit