We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
FreeEnvironmentStringsW
1 parent 5bd4988 commit c69bdd3Copy full SHA for c69bdd3
library/std/src/sys/pal/windows/c.rs
@@ -625,3 +625,14 @@ compat_fn_with_fallback! {
625
unimplemented!()
626
}
627
628
+
629
+#[cfg(target_vendor = "rust9x")]
630
+compat_fn_with_fallback! {
631
+ pub static KERNEL32: &CStr = c"kernel32" => { load: false, unicows: false };
632
+ // >= NT 3.5+, 95+
633
+ // https://learn.microsoft.com/en-us/windows/win32/api/processenv/nf-processenv-freeenvironmentstringsw
634
+ pub fn FreeEnvironmentStringsW(penv: PCWSTR) -> BOOL {
635
+ // just leak it on NT 3.1
636
+ TRUE
637
+ }
638
+}
0 commit comments