[PATCH 0/1] MR10803: ntdll: Use debugstr_wn instead of debugstr_w in nt_to_unix_file_name.
I noticed some logging like this, which looks like the second line had some unrelated characters appended: ``` 04c8:trace:file:NtCreateFile handle=0x7ffffec0ebe0 access=00010000 name=L"ones-6ae59e64850377ee5470c854761551ea.test" objattr=00001000 root=0x48 sec=(nil) io=0x7ffffec0eb80 alloc_size=(nil) attr=00000000 sharing=00000007 disp=1 options=00200000 ea=(nil).0x00000000 04c8:trace:file:nt_to_unix_file_name L"ones-6ae59e64850377ee5470c854761551ea.testI.TES" not found in . 04c8:trace:file:get_nt_and_unix_names L"ones-6ae59e64850377ee5470c854761551ea.test" -> ret c0000034 04c8:warn:file:NtCreateFile L"ones-6ae59e64850377ee5470c854761551ea.test" not found (c0000034) ``` -- https://gitlab.winehq.org/wine/wine/-/merge_requests/10803
From: Bernhard Übelacker <bernhardu@mailbox.org> --- dlls/ntdll/unix/file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/ntdll/unix/file.c b/dlls/ntdll/unix/file.c index 943af86e58f..b5add7aa501 100644 --- a/dlls/ntdll/unix/file.c +++ b/dlls/ntdll/unix/file.c @@ -3883,7 +3883,7 @@ static NTSTATUS nt_to_unix_file_name( OBJECT_ATTRIBUTES *attr, UNICODE_STRING *n } else { - TRACE( "%s not found in %s\n", debugstr_w(name), unix_name ); + TRACE( "%s not found in %s\n", debugstr_wn(name, name_len), unix_name ); free( unix_name ); } return status; -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/10803
participants (2)
-
Bernhard Übelacker -
Bernhard Übelacker (@bernhardu)