]> git.lizzy.rs Git - rust.git/commit
Windows: No panic if function not (yet) available
authorChris Denton <christophersdenton@gmail.com>
Tue, 7 Jun 2022 20:22:53 +0000 (21:22 +0100)
committerChris Denton <christophersdenton@gmail.com>
Tue, 7 Jun 2022 20:22:53 +0000 (21:22 +0100)
commit34fafd363ca46802c0e9581353511cfc7be7e4ae
treeed19ee70469042d07af217256f627c2a3acf894b
parent7fe2c4b00dfbc33643e1af4b293eb057306a8339
Windows: No panic if function not (yet) available

In some situations it is possible for required functions to be called before they've had a chance to be loaded. Therefore, we make it possible to recover from this situation simply by looking at error codes.
library/std/src/sys/windows/c.rs