File tree 1 file changed +4
-4
lines changed
library/std/src/sys/windows
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -180,8 +180,8 @@ macro_rules! compat_fn_with_fallback {
180
180
181
181
fn load_from_module( module: Option <Module >) -> F {
182
182
unsafe {
183
- static symbol_name : & CStr = ansi_str!( sym $symbol) ;
184
- if let Some ( f) = module. and_then( |m| m. proc_address( symbol_name ) ) {
183
+ static SYMBOL_NAME : & CStr = ansi_str!( sym $symbol) ;
184
+ if let Some ( f) = module. and_then( |m| m. proc_address( SYMBOL_NAME ) ) {
185
185
PTR . store( f. as_ptr( ) , Ordering :: Relaxed ) ;
186
186
mem:: transmute( f)
187
187
} else {
@@ -262,8 +262,8 @@ macro_rules! compat_fn_optional {
262
262
#[ allow( unused) ]
263
263
pub ( in crate :: sys) fn preload( module: Module ) {
264
264
unsafe {
265
- let symbol_name = ansi_str!( sym $symbol) ;
266
- if let Some ( f) = module. proc_address( symbol_name ) {
265
+ static SYMBOL_NAME : & CStr = ansi_str!( sym $symbol) ;
266
+ if let Some ( f) = module. proc_address( SYMBOL_NAME ) {
267
267
PTR . store( f. as_ptr( ) , Ordering :: Relaxed ) ;
268
268
}
269
269
}
You can’t perform that action at this time.
0 commit comments