summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2011-08-11 23:10:08 -0400
committerAdam <Adam@anope.org>2011-08-11 23:10:08 -0400
commitd44a1d08673c6f78df162a76616152fc2ea7cbd5 (patch)
treedb1819fa65c3f84ec5e630441052f73127e194b6 /include
parentc2780e1de47b4aead8ca5e2c7a7675ea987a9bb4 (diff)
Fixed Windows runtime problems
Diffstat (limited to 'include')
-rw-r--r--include/modules.h2
1 files changed, 1 insertions, 1 deletions
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;