Open Bug 454608 Opened 11 years ago Updated 11 years ago

Problem around nsProcessCommon.cpp

Categories

(Core :: XPCOM, defect)

x86
Windows XP
defect
Not set

Tracking

()

UNCONFIRMED

People

(Reporter: masa141421356, Unassigned)

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; ja; rv:1.9.0.1) Gecko/2008070208 Firefox/3.0.1
Build Identifier: 

See http://hg.mozilla.org/mozilla-central/annotate/812cba61c099/xpcom/threads/nsProcessCommon.cpp#l253

It passes NULL as program name.
But, according to MSDN Library,
When program to be executed is "C:\Program Files\Apps\App.exe",
and "C:\Program.exe" exists on "C:\",
CreateProcess will run "C:\Program.exe",
not "C:\Program Files\Apps\App.exe".

Reproducible: Always

Steps to Reproduce:
1.
2.
3.



I'm also afraid that assembleCmdLine may escape secod byte of Shift_JIS encoded filename incorrectly because it parameter is char**, not PRUnichar **.
You need to log in before you can comment on or make changes to this bug.