[Bug 52171] CXBX-R Xbox emulator cannot save game data, error "NtCreateFile alloc_size not supported"

WineHQ Bugzilla wine-bugs at winehq.org
Fri Jan 21 11:06:47 CST 2022


https://bugs.winehq.org/show_bug.cgi?id=52171

Stefan Dösinger <stefan at codeweavers.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |stefan at codeweavers.com

--- Comment #1 from Stefan Dösinger <stefan at codeweavers.com> ---
Created attachment 71702
  --> https://bugs.winehq.org/attachment.cgi?id=71702
Possible hack

My 2c from the cxbx source code is that it just passes through a game request
here. That would explain why different games behave differently.

I don't think the NtCreateFile FIXME matters on its own. According to
stackoverflow postings the parameter is merely a hint to the file system to
reserve a certain amount of space to reduce fragmentation and/or fail early if
not enough free space is available.

The error return from NtQueryInformationFile is more likely to cause a failure.
This hack simply changes it to return success and a zero size. It might be
enough. If not, try to trace the value(s) that the game passes to NtCreateFile
and return a similar or larger value in NtQueryInformationFile and see what
happens.

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.


More information about the wine-bugs mailing list