Skip to content

Commit

Permalink
Fixed syntax on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
szymonwieloch committed Sep 6, 2017
1 parent 3472290 commit 719b55c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/raw/windows.rs
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ pub unsafe fn open_lib(name: &OsStr) -> Result<Handle, Error> {
let wide_name: Vec<u16> = name.encode_wide().chain(Some(0)).collect();
let _guard = match ErrorModeGuard::new() {
Ok(val) => val,
Err(err) => return Error::OpeningLibraryError(err),
Err(err) => return Err(Error::OpeningLibraryError(err)),
};
let handle = kernel32::LoadLibraryW(wide_name.as_ptr());
if handle.is_null() {
Expand Down

0 comments on commit 719b55c

Please sign in to comment.