File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -245,8 +245,8 @@ unsafe fn do_resolve(
245
245
// the real value.
246
246
// SAFETY: We assume NameLen has been initialized by SymFromAddrW, and we initialized MaxNameLen
247
247
let name_len = unsafe { cmp:: min ( ( * info) . NameLen as usize , ( * info) . MaxNameLen as usize - 1 ) } ;
248
- // Name must be initialized by SymFromAddrW, but we only interact with it as a pointer anyways.
249
- let name_ptr = ( & raw const ( * info) . Name ) . cast :: < u16 > ( ) ;
248
+ // SAFETY: Name must be initialized by SymFromAddrW, but we only interact with it as a pointer anyways.
249
+ let name_ptr = unsafe { ( & raw const ( * info) . Name ) . cast :: < u16 > ( ) } ;
250
250
251
251
// Reencode the utf-16 symbol to utf-8 so we can use `SymbolName::new` like
252
252
// all other platforms
You can’t perform that action at this time.
0 commit comments