return NULL if no module handle in sigar_GetProcAddress

This commit is contained in:
Doug MacEachern 2005-10-02 20:37:52 +00:00
parent 7007a4740c
commit 90c453d4ac
1 changed files with 1 additions and 0 deletions

View File

@ -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))) {