xcrd: accept the GDK 2504 DirectStorage factory IID #397
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/397"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from omonkeyz/xbox-emulator. Originally posted by andersonlucasg3 on 2026-12-03T00:55:24Z.
Library / area:
crates/compat/xcrdapi—DStorageGetFactory/IDStorageFactoryX::QueryInterface.Exports changed (exports.txt rows): none.
Source of the behaviour: the GDK 2504 revision requests the DirectStorage factory with the newer factory IID
{62959d11-d45f-4884-a0a3-f7862ea243ae}. It names the sameIDStorageFactoryXsingleton as the existing IID, so answering it with the same factory object keeps the storage backend working without a vtable or layout change.Change: add
IID_FACTORY_X_GDK2504next to the existing factory IID in the sameiid(...)encoding, accept it infactory_qi, and return the same singleton factory; the unit test covers both factory IIDs (same pointer) and an unrelated IID (E_NOINTERFACE).Evidence: before, the storage factory request with the newer IID returned
hr=0x80004002(E_NOINTERFACE) and storage setup could not come up; after, the same call returnshr=0x00000000and storage setup proceeds. No factory object or vtable layout change.cargo test -p xcrdapi gdk_2504_factory_iid_reaches_the_same_factorypasses; the rest of the crate suite needs console DLL fixtures that are not on this machinemissingwith a noteView command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.