diff options
author | mmentovai@google.com <mmentovai@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-14 00:41:45 +0000 |
---|---|---|
committer | mmentovai@google.com <mmentovai@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-14 00:41:45 +0000 |
commit | 5115474e2e2c773b53fc1e111426e8924deeadb7 (patch) | |
tree | 6bdd56cdd544a3b331db7612781ae347739c4e82 /sandbox/sandbox_poc | |
parent | 609990b5b4254601504935427483e3fc22cfde80 (diff) | |
download | chromium_src-5115474e2e2c773b53fc1e111426e8924deeadb7.zip chromium_src-5115474e2e2c773b53fc1e111426e8924deeadb7.tar.gz chromium_src-5115474e2e2c773b53fc1e111426e8924deeadb7.tar.bz2 |
Use %ls instead of %s in wprintf format strings for wchar_t fields.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@846 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'sandbox/sandbox_poc')
-rw-r--r-- | sandbox/sandbox_poc/main_ui_window.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sandbox/sandbox_poc/main_ui_window.cc b/sandbox/sandbox_poc/main_ui_window.cc index fdef50d..be68cdb 100644 --- a/sandbox/sandbox_poc/main_ui_window.cc +++ b/sandbox/sandbox_poc/main_ui_window.cc @@ -426,7 +426,7 @@ DWORD MainUIWindow::ListenPipe() { FILE_ATTRIBUTE_NORMAL, NULL); // No template if (INVALID_HANDLE_VALUE == logfile_handle) { - AddDebugMessage(L"Failed to open \"%s\" for logging. Error %d", + AddDebugMessage(L"Failed to open \"%ls\" for logging. Error %d", file_to_open.GetBuffer(), ::GetLastError()); logfile_handle = NULL; } @@ -524,7 +524,7 @@ bool MainUIWindow::SpawnTarget() { } wchar_t * arguments = new wchar_t[size_call]; - wnsprintf(arguments, static_cast<int>(size_call), L"%s %s \"%s\" %s", + wnsprintf(arguments, static_cast<int>(size_call), L"%ls %ls \"%ls\" %ls", spawn_target_.c_str(), entry_point_.c_str(), dll_path_.c_str(), log_pipe); @@ -553,7 +553,7 @@ bool MainUIWindow::SpawnTarget() { bool return_value = false; if (sandbox::SBOX_ALL_OK != result) { AddDebugMessage( - L"Failed to spawn target %s w/args (%s), sandbox error code: %d", + L"Failed to spawn target %ls w/args (%ls), sandbox error code: %d", spawn_target_.c_str(), arguments, result); return_value = false; } else { @@ -592,7 +592,7 @@ bool MainUIWindow::SpawnTarget() { ::ResumeThread(target_.hThread); - AddDebugMessage(L"Successfully spawned target w/args (%s)", arguments); + AddDebugMessage(L"Successfully spawned target w/args (%ls)", arguments); return_value = true; } |