summaryrefslogtreecommitdiff
path: root/libarchive/archive_util.c
diff options
context:
space:
mode:
authorMichihiro NAKAJIMA <ggcueroad@gmail.com>2012-11-07 15:25:47 +0900
committerMichihiro NAKAJIMA <ggcueroad@gmail.com>2012-11-07 15:25:47 +0900
commit4f54591d05a9b4d593cda12a48cf13cab43bb5db (patch)
tree71bf381322d7f506a4fa3bf9944fdf471d72a142 /libarchive/archive_util.c
parent6f00b2a18cddba6030583ea1338465f31f83f746 (diff)
downloadlibarchive-4f54591d05a9b4d593cda12a48cf13cab43bb5db.tar.gz
Fix build failure on Win64.
Diffstat (limited to 'libarchive/archive_util.c')
-rw-r--r--libarchive/archive_util.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libarchive/archive_util.c b/libarchive/archive_util.c
index ffeaac9c..34d8081c 100644
--- a/libarchive/archive_util.c
+++ b/libarchive/archive_util.c
@@ -243,7 +243,7 @@ __archive_mktemp(const char *tmpdir)
errno = ENOMEM;
goto exit_tmpfile;
}
- GetTempPathW(l, tmp);
+ GetTempPathW((DWORD)l, tmp);
archive_wstrcpy(&temp_name, tmp);
free(tmp);
} else {
@@ -297,7 +297,8 @@ __archive_mktemp(const char *tmpdir)
/* Generate a random file name through CryptGenRandom(). */
p = xp;
- if (!CryptGenRandom(hProv, (ep - p)*sizeof(wchar_t), (BYTE*)p)) {
+ if (!CryptGenRandom(hProv, (DWORD)(ep - p)*sizeof(wchar_t),
+ (BYTE*)p)) {
la_dosmaperr(GetLastError());
goto exit_tmpfile;
}