We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
FreeEnvironmentStringsW
1 parent e7dca8e commit 99db2ceCopy full SHA for 99db2ce
library/std/src/sys/pal/windows/c.rs
@@ -638,3 +638,14 @@ compat_fn_with_fallback! {
638
unimplemented!()
639
}
640
641
+
642
+#[cfg(target_vendor = "rust9x")]
643
+compat_fn_with_fallback! {
644
+ pub static KERNEL32: &CStr = c"kernel32" => { load: false, unicows: false };
645
+ // >= NT 3.5+, 95+
646
+ // https://learn.microsoft.com/en-us/windows/win32/api/processenv/nf-processenv-freeenvironmentstringsw
647
+ pub fn FreeEnvironmentStringsW(penv: PCWSTR) -> BOOL {
648
+ // just leak it on NT 3.1
649
+ TRUE
650
+ }
651
+}
0 commit comments