http://bugs.winehq.org/show_bug.cgi?id=24192
--- Comment #1 from Vincent Povirk madewokherd@gmail.com 2010-09-16 16:52:38 CDT --- According to http://msdn.microsoft.com/en-us/library/aa365430%28VS.85%29.aspx, "you cannot use the OpenFile function to open a file with a path length that exceeds 128 characters."
That particular path is 130 characters long. SearchPath fails, but OpenFile (incorrectly) continues anyway and tries to use uninitialized memory, causing ERROR_INVALID_NAME. OpenFile should (apparently) fail, but with a different error code.
This needs a testcase.
Maybe you can work around this by choosing a different, shorter path for the install.