Closed Bug 282808 Opened 20 years ago Closed 15 years ago

'WinExec' is deprecated (in obsolete/nsFileSpecWin.cpp)

Categories

(Core :: XPCOM, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 514131

People

(Reporter: David.R.Gardiner, Unassigned)

References

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0

Running PREfast static code analysis gives the following warning:

nsfilespecwin.cpp(641) : warning 301: 'WinExec' is deprecated: please refer to
MSDN for more details.
problem occurs in function 'nsFileSpec::Execute'

According to
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/winexec.asp
applications should use the CreateProcess API instead. We don't support 16bit
anymore so I think this is reasonable.

-dave

Reproducible: Always

Steps to Reproduce:
nsFileSpec is obsolete.  I would hope, if at all possible, we fix the callers of
nsFileSpec to use nsLocalFile instead of fixing nsFileSpec.
Yeah, let's just remove nsFileSpec :)
Blocks: 283681
Depends on: 38122
Assignee: dougt → nobody
QA Contact: xpcom
By bug 514131, nsFileSpec was removed.
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.