[Bug 11073] crash in kernel32 with lib.exe (VC++6.0)

wine-bugs at winehq.org wine-bugs at winehq.org
Mon Jan 14 17:31:51 CST 2008


http://bugs.winehq.org/show_bug.cgi?id=11073





--- Comment #21 from Jason Edmeades <us at edmeades.me.uk>  2008-01-14 17:31:51 ---
Update: Patch solves the problems but causes another. I need to think about
this

eg. "a.bat" - echo a, "a b.bat" - echo a and b

cmd.exe: a  - only a
       : a b - only a
       : "a b" - a and b
cmd.exe /c a b       - only a
cmd.exe /c "a b"     - a and b

Its this last case which breaks with my patch. Currently the code used
parameter parsing which strips quotes, so the first 'parameter' is the whole
quoted string. It then adds quotes around the lot and passes to run program. My
patch doesnt add quotes if there is only one arg (one arg == prevsiouly quoted
string, or string with no delimeters in it passed to cmd.exe /c). This, whilst
working, breaks the last case above.... Use it as a workaround whilst I think
about it!


-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the wine-bugs mailing list