"James Hawkins" truiken@gmail.com writes:
All the handling is in place for this to (mostly) work in SetupOpenInfFileW. We call CreateFile("c:\windows\system32\winver.exe", ..., OPEN_EXISTING...), but that fails, returning INVALID_HANDLE_VALUE. winver.exe is in drive_c/windows/system32 as a symlink to the installed winver.exe.so. Should a call to CreateFile on a symlink fail?
If the symlink is broken, yes. Note that it's no longer supposed to be a symlink, you should probably remove it and re-run wineprefixcreate. That said, I'm not quite sure why you'd want to open an exe with SetupOpenInfFile...