Skip to content

Commit

Permalink
[Windows]: LoadLibraryExW - document the reserved parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
NightRa committed Apr 15, 2020
1 parent 8bde6ba commit e4fa765
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/os/windows/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ unsafe impl Sync for Library {}
impl Library {
/// Find and load a shared library (module).
///
/// Corresponds to `LoadLibraryExW(filename, NULL, 0)` which is equivalent to `LoadLibraryW(filename)`
/// Corresponds to `LoadLibraryExW(filename, reserved: NULL, flags: 0)` which is equivalent to `LoadLibraryW(filename)`
#[inline]
pub fn new<P: AsRef<OsStr>>(filename: P) -> Result<Library, crate::Error> {
Library::load_with_flags(filename, 0)
Expand All @@ -44,7 +44,7 @@ impl Library {
/// Locations where library is searched for is platform specific and can’t be adjusted
/// portably.
///
/// Corresponds to `LoadLibraryExW(filename, NULL, flags)`.
/// Corresponds to `LoadLibraryExW(filename, reserved: NULL, flags)`.
pub fn load_with_flags<P: AsRef<OsStr>>(filename: P, flags: DWORD) -> Result<Library, crate::Error> {
let wide_filename: Vec<u16> = filename.as_ref().encode_wide().chain(Some(0)).collect();
let _guard = ErrorModeGuard::new();
Expand Down

0 comments on commit e4fa765

Please # to comment.