You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (exports->NumberOfNames==0||exports->NumberOfFunctions==0) {
// DLL doesn't export anythingSetLastError(ERROR_PROC_NOT_FOUND);
returnNULL;
}
A dll may have no exported names, but has a set of private exported functions with no expoted names. Thus, NumberOfNames == 0 while NumberOfFunctions > 0 cannot impliy that DLL doesn't export anything.
Maybe the code above should be changed to
if (exports->NumberOfFunctions==0) {
// DLL doesn't export anythingSetLastError(ERROR_PROC_NOT_FOUND);
returnNULL;
}
The text was updated successfully, but these errors were encountered:
I debugged the function and noticed:
A dll may have no exported names, but has a set of private exported functions with no expoted names. Thus,
NumberOfNames == 0
whileNumberOfFunctions > 0
cannot impliy that DLL doesn't export anything.Maybe the code above should be changed to
The text was updated successfully, but these errors were encountered: