diff options
| author | Barosl LEE <github@barosl.com> | 2015-01-21 02:16:51 +0900 |
|---|---|---|
| committer | Barosl LEE <github@barosl.com> | 2015-01-21 02:16:51 +0900 |
| commit | 3d6568fcb2ceac47104c0f7017d39328e5d871b1 (patch) | |
| tree | b606d8e8a569fea0a766c7602818e1952e983780 /src/libstd/sys | |
| parent | b9588393ee18b5d47b9c05bf1910948bfda062b4 (diff) | |
| parent | b57662aed70fefd03cc50279644b736ddf4d72aa (diff) | |
| download | rust-3d6568fcb2ceac47104c0f7017d39328e5d871b1.tar.gz rust-3d6568fcb2ceac47104c0f7017d39328e5d871b1.zip | |
Rollup merge of #21387 - retep998:hmodule, r=alexcrichton
r? @alexcrichton
Diffstat (limited to 'src/libstd/sys')
| -rw-r--r-- | src/libstd/sys/windows/os.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/sys/windows/os.rs b/src/libstd/sys/windows/os.rs index 4540068133b..e9490dc95c9 100644 --- a/src/libstd/sys/windows/os.rs +++ b/src/libstd/sys/windows/os.rs @@ -281,7 +281,7 @@ pub fn join_paths<T: BytesContainer>(paths: &[T]) -> Result<Vec<u8>, &'static st pub fn load_self() -> Option<Vec<u8>> { unsafe { fill_utf16_buf_and_decode(|buf, sz| { - libc::GetModuleFileNameW(0u as libc::DWORD, buf, sz) + libc::GetModuleFileNameW(ptr::null_mut(), buf, sz) }).map(|s| s.to_string().into_bytes()) } } |
