veeenu / hudhook

A videogame overlay framework written in Rust, supporting DirectX and OpenGL
MIT License
167 stars 27 forks source link

Avoid calls to `RoOriginateErrorW` #167

Closed veeenu closed 4 months ago

veeenu commented 4 months ago

As per https://github.com/microsoft/windows-rs/issues/1287, instantiating a windows::core::Error calls RoOriginateErrorW when a message is passed in. This is not available at the moment on Wine.

Since now Wine compatibility is an explicit goal, this PR removes those calls. Running the library at all at the cost of slightly more opaque errors is a reasonable tradeoff.