Skip to content

Reproduces difference in return value for NtReadFile. - #28

Closed
abaire wants to merge 1 commit into
XboxDev:mainfrom
abaire:repro_assert_ntreadfile_return_behavior
Closed

abaire wants to merge 1 commit into
XboxDev:mainfrom
abaire:repro_assert_ntreadfile_return_behavior

Conversation

@abaire

@abaire abaire commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

When a file is opened using NtCreateFile with
FILE_NON_DIRECTORY_FILE | FILE_RANDOM_ACCESS | FILE_NO_INTERMEDIATE_BUFFERING

and subsequently read by NtReadFile:

On a retail-ish bios NtReadFile will return STATUS_PENDING On Roswell it will return STATUS_SUCCESS

This led to an assert in the nxdk_pgraph_tests due to the expected async read behavior.

When a file is opened using NtCreateFile with
FILE_NON_DIRECTORY_FILE | FILE_RANDOM_ACCESS | FILE_NO_INTERMEDIATE_BUFFERING

and subsequently read by NtReadFile:

On a retail-ish bios NtReadFile will return `STATUS_PENDING`
On Roswell it will return `STATUS_SUCCESS`

This led to an assert in the nxdk_pgraph_tests due to the expected async read
behavior.
@abaire

abaire commented Sep 1, 2026

Copy link
Copy Markdown
Contributor Author

Argh, wrong repo target, sorry.

@abaire abaire closed this Sep 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant