Comment by seritools
4 years ago
Just grabbed the latest ISO to test it out :) - rust9x_sample.exe sadly only works in 98/Me compatibility mode. https://i.imgur.com/nWCfTtV.png
In regular mode it seems there's a problem with the system not setting the file pointer to the end when OpenOptions::append is used: https://i.imgur.com/vvbEnWh.png https://doc.rust-lang.org/std/fs/struct.OpenOptions.html#met...
This sounds like you've found a bug in either the Rust standard library or the ReactOS API implementation. It might be worth looking into this!
To clarify, it works in 98/Me mode because I added a fallback implementation to Rust9x for these systems, as the flag in question is not supported.
AFAICT it is supported since NT 3.1, though, and it worked fine on all NT-based systems I've tested so far, so my guess would be a ReactOS API bug.
The commit adding the 9x/Me fallback implementation:
https://github.com/rust9x/rust/commit/3a3eddb0044c6d03357a75...