From 5fed68f555c7ce8c0801cde164189db6856c0050 Mon Sep 17 00:00:00 2001 From: henrypp Date: Sat, 4 May 2024 02:05:35 +0500 Subject: [PATCH] fixed opening viewer (fix #1757) --- src/messages.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/src/messages.c b/src/messages.c index 3296426d..040fbd50 100644 --- a/src/messages.c +++ b/src/messages.c @@ -2216,7 +2216,6 @@ VOID _app_command_logshow ( { PR_STRING path; PR_STRING viewer_path; - PR_STRING process_path; HANDLE current_handle; INT item_count; NTSTATUS status; @@ -2252,21 +2251,11 @@ VOID _app_command_logshow ( if (!viewer_path) return; - process_path = _r_obj_concatstrings ( - 5, - L"\"", - viewer_path->buffer, - L"\" \"", - path->buffer, - L"\"" - ); - - status = _r_sys_createprocess (viewer_path->buffer, process_path->buffer, NULL); + status = _r_sys_createprocess (viewer_path->buffer, path->buffer, NULL); if (!NT_SUCCESS (status)) _r_show_errormessage (hwnd, NULL, status, viewer_path->buffer, ET_NATIVE); - _r_obj_dereference (process_path); _r_obj_dereference (viewer_path); } }