Skip to content

Commit 4935f35

Browse files
committed
Try adding .dll
1 parent 3a95874 commit 4935f35

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

common/src/fileutils.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,8 @@ pub mod windows {
318318

319319
let GetFileInformationByName = GET_FILE_INFORMATION_BY_NAME
320320
.get_or_init(|| {
321-
let library_name = OsString::from("api-ms-win-core-file-l2-1-4").to_wide_with_nul();
321+
let library_name =
322+
OsString::from("api-ms-win-core-file-l2-1-4.dll").to_wide_with_nul();
322323
let module = unsafe { LoadLibraryW(library_name.as_ptr()) };
323324
if module == 0 {
324325
return None;

0 commit comments

Comments
 (0)