FARPROC fnExp = NULL;
NTSTATUS Status;
+ if (!hModule)
+ {
+ SetLastError(ERROR_PROC_NOT_FOUND);
+ return NULL;
+ }
+
if (HIWORD(lpProcName) != 0)
{
RtlInitAnsiString (&ProcedureName,
{
/* this is a LOAD_LIBRARY_AS_DATAFILE module */
char *ptr = (char *)hLibModule - 1;
- UnmapViewOfFile(ptr);
- return TRUE;
+ return UnmapViewOfFile(ptr);
}
Status = LdrUnloadDll(hLibModule);