summaryrefslogtreecommitdiffstats
path: root/tools/traceline
diff options
context:
space:
mode:
authordeanm@chromium.org <deanm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-02 15:02:52 +0000
committerdeanm@chromium.org <deanm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-02 15:02:52 +0000
commitf53f1219e5110ba6bb2914f357772e84c07db29a (patch)
tree7399f9245a145f79a81953b5fdb99e5a2a34a1a1 /tools/traceline
parent278911fe52f3071557fd21e32a0cd7f5e03e5bc9 (diff)
downloadchromium_src-f53f1219e5110ba6bb2914f357772e84c07db29a.zip
chromium_src-f53f1219e5110ba6bb2914f357772e84c07db29a.tar.gz
chromium_src-f53f1219e5110ba6bb2914f357772e84c07db29a.tar.bz2
Revert r25138, changes to string handling in traceline.
It was committed without review. Review URL: http://codereview.chromium.org/187006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@25170 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools/traceline')
-rw-r--r--tools/traceline/traceline/main.cc24
1 files changed, 10 insertions, 14 deletions
diff --git a/tools/traceline/traceline/main.cc b/tools/traceline/traceline/main.cc
index 6d5d481..97085eb 100644
--- a/tools/traceline/traceline/main.cc
+++ b/tools/traceline/traceline/main.cc
@@ -1259,20 +1259,16 @@ int main(int argc, char** argv) {
STARTUPINFO start_info = {0};
start_info.cb = sizeof(start_info);
- int command_size = MultiByteToWideChar(CP_ACP, 0, argv[0], -1, NULL, 0);
- LPWSTR command = new WCHAR[command_size];
- MultiByteToWideChar(CP_ACP, 0, argv[0], -1, command, command_size);
-
- if (!CreateProcess(NULL,
- command,
- NULL,
- NULL,
- FALSE,
- CREATE_SUSPENDED,
- NULL,
- NULL,
- &start_info,
- &info)) {
+ if (!CreateProcessA(NULL,
+ argv[0],
+ NULL,
+ NULL,
+ FALSE,
+ CREATE_SUSPENDED,
+ NULL,
+ NULL,
+ &start_info,
+ &info)) {
NOTREACHED("Failed to launch \"%s\": %d\n", argv[0], GetLastError());
return 1;
}