From 90c453d4acbc809a3f5c6a477d6fa6de625a6214 Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Sun, 2 Oct 2005 20:37:52 +0000 Subject: [PATCH] return NULL if no module handle in sigar_GetProcAddress --- src/os/win32/win32_sigar.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/os/win32/win32_sigar.c b/src/os/win32/win32_sigar.c index eb547434..9ce3aa02 100644 --- a/src/os/win32/win32_sigar.c +++ b/src/os/win32/win32_sigar.c @@ -101,6 +101,7 @@ static FARPROC sigar_GetProcAddress(sigar_t *sigar, sigar_log_printf(sigar, SIGAR_LOG_DEBUG, "GetProcAddress(%s): %s\n", lpProcName, "No module handle"); + return NULL; } if (!(ptr = GetProcAddress(hModule, lpProcName))) {