Skip to content

Commit fcbffcb

Browse files
committed
fixup! Stub FreeEnvironmentStringsW to just leak on NT 3.1
1 parent 7fd45de commit fcbffcb

File tree

1 file changed

+1
-1
lines changed
  • library/std/src/sys/windows

1 file changed

+1
-1
lines changed

library/std/src/sys/windows/c.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,7 @@ compat_fn_with_fallback! {
532532

533533
// >= NT 3.5+, 95+
534534
// https://docs.microsoft.com/en-us/windows/win32/api/processenv/nf-processenv-freeenvironmentstringsw
535-
pub fn FreeEnvironmentStringsW(env_ptr: LPWCH) -> BOOL {
535+
pub fn FreeEnvironmentStringsW(env_ptr: PCWSTR) -> BOOL {
536536
// just leak it on NT 3.1
537537
TRUE
538538
}

0 commit comments

Comments
 (0)