Skip to content

Commit 8afe918

Browse files
coolreader18youknowone
authored andcommitted
Try adding .dll
1 parent 588cfdd commit 8afe918

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

crates/common/src/fileutils.rs

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

304304
let GetFileInformationByName = GET_FILE_INFORMATION_BY_NAME
305305
.get_or_init(|| {
306-
let library_name = OsString::from("api-ms-win-core-file-l2-1-4").to_wide_with_nul();
306+
let library_name =
307+
OsString::from("api-ms-win-core-file-l2-1-4.dll").to_wide_with_nul();
307308
let module = unsafe { LoadLibraryW(library_name.as_ptr()) };
308309
if module.is_null() {
309310
return None;

0 commit comments

Comments
 (0)