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 b0b2be1 commit 02979aaCopy full SHA for 02979aa
library/std/src/sys/pal/windows/c.rs
@@ -637,3 +637,14 @@ compat_fn_with_fallback! {
637
rtabort!("unimplemented")
638
}
639
640
+
641
+#[cfg(target_vendor = "rust9x")]
642
+compat_fn_with_fallback! {
643
+ pub static KERNEL32: &CStr = c"kernel32" => { load: false, unicows: true };
644
+ // >= NT 3.5+, 95+
645
+ // https://learn.microsoft.com/en-us/windows/win32/api/processenv/nf-processenv-freeenvironmentstringsw
646
+ pub fn FreeEnvironmentStringsW(penv: PCWSTR) -> BOOL {
647
+ // just leak it on NT 3.1
648
+ TRUE
649
+ }
650
+}
0 commit comments