http://bugs.winehq.org/show_bug.cgi?id=9575
--- Comment #16 from Markus mst@collogia.de 2009-09-12 08:19:36 --- Sorry for the initial confusion. I got the reason for the error now exactly. I simply misread the debuggers output.
Situation occurs because of the following behaviour:
- Application calls StgOpenStorage for an file that is already opened. - In line 6130 *ppstgOpen is set to NULL - The CreateFileW afterwards fails and the procedure goes into error handling - *ppstgOpen is not touched any more and points to NULL - Nevertheless application tries to read data at *ppstgOpen - So crash there.
My initial fix worked because it allowed a second open to the file and the pointer got initialized correctly.
Best regards.