File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -13,12 +13,12 @@ typedef struct {
13
13
/// An optional (possibly null) shared Windows library handle.
14
14
NSTDOptional (NSTDWindowsSharedLib ) NSTDWindowsOptionalSharedLib ;
15
15
16
- /// Adds a directory to the system's search path used to load shared libraries.
16
+ /// Sets a directory to the system's search path used to load shared libraries.
17
17
///
18
18
/// # Parameters:
19
19
///
20
20
/// - `const NSTDChar *path` - A path to a directory to search when looking for DLLs. Pass null to
21
- /// restore the default search order .
21
+ /// restore the default search path .
22
22
///
23
23
/// # Returns
24
24
///
@@ -27,7 +27,7 @@ NSTDOptional(NSTDWindowsSharedLib) NSTDWindowsOptionalSharedLib;
27
27
/// # Safety
28
28
///
29
29
/// See <https://docs.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-setdlldirectorya>.
30
- NSTDAPI NSTDErrorCode nstd_os_windows_shared_lib_add_dir (const NSTDChar * path );
30
+ NSTDAPI NSTDErrorCode nstd_os_windows_shared_lib_set_dir (const NSTDChar * path );
31
31
32
32
/// Loads a shared library/module by name.
33
33
///
Original file line number Diff line number Diff line change @@ -25,12 +25,12 @@ impl Drop for NSTDWindowsSharedLib {
25
25
/// An optional (possibly null) shared Windows library handle.
26
26
pub type NSTDWindowsOptionalSharedLib = NSTDOptional < NSTDWindowsSharedLib > ;
27
27
28
- /// Adds a directory to the system's search path used to load shared libraries.
28
+ /// Sets a directory to the system's search path used to load shared libraries.
29
29
///
30
30
/// # Parameters:
31
31
///
32
32
/// - `const NSTDChar *path` - A path to a directory to search when looking for DLLs. Pass null to
33
- /// restore the default search order .
33
+ /// restore the default search path .
34
34
///
35
35
/// # Returns
36
36
///
@@ -41,7 +41,7 @@ pub type NSTDWindowsOptionalSharedLib = NSTDOptional<NSTDWindowsSharedLib>;
41
41
/// See <https://docs.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-setdlldirectorya>.
42
42
#[ inline]
43
43
#[ cfg_attr( feature = "clib" , no_mangle) ]
44
- pub unsafe extern "C" fn nstd_os_windows_shared_lib_add_dir (
44
+ pub unsafe extern "C" fn nstd_os_windows_shared_lib_set_dir (
45
45
path : * const NSTDChar ,
46
46
) -> NSTDErrorCode {
47
47
( SetDllDirectoryA ( path. cast ( ) ) == 0 ) . into ( )
You can’t perform that action at this time.
0 commit comments