http://bugs.winehq.org/show_bug.cgi?id=24192
--- Comment #2 from Eduardo companheiro.vermelho@gmail.com 2010-09-17 02:47:53 CDT --- (In reply to comment #1)
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.
You are absolutely right! Installing in a shorter path solved the problem. I will try to reproduce this on Windows to discover which errorcode OpenFile should use. Still, thank you very much. Great work!