1
0
mirror of https://github.com/solemnwarning/ipxwrapper synced 2024-12-30 16:45:37 +01:00

Log stub DLL name rather than target DLL when logging calls.

This commit is contained in:
Daniel Collins 2011-11-16 22:29:27 +00:00
parent e7c6358044
commit f1fa666c00
3 changed files with 9 additions and 1 deletions

View File

@ -17,6 +17,10 @@ Version 0.3.2:
initialisation.
Cleanup: Cleaned up error handling in SPInit.
Cleanup: Updated logging API.
Bugfix: Log stub DLL name rather than target DLL when logging calls.
Version 0.3.1:
Bugfix: Fixed deadlock in DirectPlay service provider.

View File

@ -71,7 +71,7 @@ foreach my $func(@stubs) {
if($do_logging) {
print CODE "\tpush\t$f_name\_sym\n";
print CODE "\tpush\tdword ".$func->{"dllnum"}."\n";
print CODE "\tpush\tdword $dllnum\n";
print CODE "\tcall\t_log_call\n";
}

View File

@ -59,6 +59,10 @@ void log_close() {
void log_printf(enum ipx_log_level level, const char *fmt, ...) {
DWORD called = GetTickCount();
if(level < min_log_level) {
return;
}
WaitForSingleObject(log_mutex, INFINITE);
if(!log_fh) {