diff options
Diffstat (limited to 'chrome_elf/create_file/chrome_create_file.cc')
-rw-r--r-- | chrome_elf/create_file/chrome_create_file.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/chrome_elf/create_file/chrome_create_file.cc b/chrome_elf/create_file/chrome_create_file.cc index 1b8515f..9521ecb2 100644 --- a/chrome_elf/create_file/chrome_create_file.cc +++ b/chrome_elf/create_file/chrome_create_file.cc @@ -254,8 +254,7 @@ HANDLE CreateFileNTDLL( bool ShouldBypass(LPCWSTR file_path) { // Do not redirect in non-browser processes. - wchar_t* command_line = ::GetCommandLine(); - if (command_line && wcsstr(command_line, L"--type")) + if (IsNonBrowserProcess()) return false; // If the shell functions are not present, forward the call to kernel32. |