http://bugs.winehq.org/show_bug.cgi?id=28258
Jason Edmeades us@edmeades.me.uk changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |us@edmeades.me.uk
--- Comment #2 from Jason Edmeades us@edmeades.me.uk 2012-09-04 17:40:15 CDT --- A fun one :-)
The key here is the line "cd .. & rd /s/q foobar"
cd is passed ".. " as the command line and it copies it into a buffer, character by character. It then loops stripping off trailing whitespace, checking we havent walked over the front of the buffer. However the variable which is the front of the buffer is wrong... Without heap+warn, lower in memory so passes, but with heap_warn it isnt, and we fail to remove the space, ending up looking for ".. " as the actual directory name, which FindFirstFile fails to find.