wcmd: strip quotes around executable and retry on error
Francois Gouget
fgouget at free.fr
Fri Jul 21 11:22:04 CDT 2006
On Tue, 11 Jul 2006, Thomas Kho wrote:
[...]
> A fake notepad.exe is currently created in c:\windows\system32. I
> don't think there's duplication of CreateProcess because CreateProcess
> considers the filename of the executable to be the first quoted term
> in the commandline. In contrast, cmd.exe also considers the first
> space-separated word of that quoted string as the filename of the
> executable when the entire quoted term is not an executable.
CreateProcess does that too:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/createprocess.asp
--
Francois Gouget <fgouget at free.fr> http://fgouget.free.fr/
Indifference will certainly be the downfall of mankind, but who cares?
More information about the wine-devel
mailing list