We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e151306 commit aa95934Copy full SHA for aa95934
src/dbghelp.rs
@@ -409,8 +409,7 @@ pub fn init() -> Result<Init, ()> {
409
//
410
// See https://learn.microsoft.com/cpp/build/reference/pdbpath for an
411
// example of where symbols are usually searched for.
412
- let mut search_path_buf = Vec::new();
413
- search_path_buf.resize(1024, 0);
+ let mut search_path_buf = vec![0; 1024];
414
415
// Prefill the buffer with the current search path.
416
if DBGHELP.SymGetSearchPathW().unwrap()(
0 commit comments