fix: wide string concatenation (#40892)
* fix: wide string concatenation * Use wstring_views to keep length in context * forgot a space, oopsies
This commit is contained in:
parent
3a22fd3216
commit
37630a6128
2 changed files with 13 additions and 13 deletions
|
@ -8,7 +8,8 @@
|
|||
|
||||
#include "base/logging.h"
|
||||
#include "base/process/launch.h"
|
||||
#include "base/strings/stringprintf.h"
|
||||
#include "base/strings/strcat_win.h"
|
||||
#include "base/strings/string_number_conversions_win.h"
|
||||
#include "base/strings/utf_string_conversions.h"
|
||||
#include "base/win/scoped_handle.h"
|
||||
#include "sandbox/win/src/nt_internals.h"
|
||||
|
@ -109,8 +110,8 @@ StringType AddQuoteForArg(const StringType& arg) {
|
|||
} // namespace
|
||||
|
||||
StringType GetWaitEventName(base::ProcessId pid) {
|
||||
return base::UTF8ToWide(
|
||||
base::StringPrintf("%ls-%d", kWaitEventName, static_cast<int>(pid)));
|
||||
return base::StrCat(
|
||||
{kWaitEventName, L"-", base::NumberToWString(static_cast<int>(pid))});
|
||||
}
|
||||
|
||||
StringType ArgvToCommandLineString(const StringVector& argv) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue