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:
parent
e7c6358044
commit
f1fa666c00
@ -17,6 +17,10 @@ Version 0.3.2:
|
|||||||
initialisation.
|
initialisation.
|
||||||
|
|
||||||
Cleanup: Cleaned up error handling in SPInit.
|
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:
|
Version 0.3.1:
|
||||||
Bugfix: Fixed deadlock in DirectPlay service provider.
|
Bugfix: Fixed deadlock in DirectPlay service provider.
|
||||||
|
@ -71,7 +71,7 @@ foreach my $func(@stubs) {
|
|||||||
|
|
||||||
if($do_logging) {
|
if($do_logging) {
|
||||||
print CODE "\tpush\t$f_name\_sym\n";
|
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";
|
print CODE "\tcall\t_log_call\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -59,6 +59,10 @@ void log_close() {
|
|||||||
void log_printf(enum ipx_log_level level, const char *fmt, ...) {
|
void log_printf(enum ipx_log_level level, const char *fmt, ...) {
|
||||||
DWORD called = GetTickCount();
|
DWORD called = GetTickCount();
|
||||||
|
|
||||||
|
if(level < min_log_level) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
WaitForSingleObject(log_mutex, INFINITE);
|
WaitForSingleObject(log_mutex, INFINITE);
|
||||||
|
|
||||||
if(!log_fh) {
|
if(!log_fh) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user