AaronRobinsonMSFT / DNNE

Prototype native exports for a .NET Assembly.
MIT License
406 stars 41 forks source link

Retain the system error code during export resolution #87

Closed AaronRobinsonMSFT closed 3 years ago

AaronRobinsonMSFT commented 3 years ago

Calling an export can result in lazily loading the runtime and lazily discovering the export. This is not intuitive to the caller since calling an export should appear like calling any other native function export. In this case we store the current system error code and then reset it upon success in an attempt to appear "normal".

/cc @jkoritzinsky @elinor-fung