diff options
author | Sean Hall <r.sean.hall@gmail.com> | 2021-04-28 16:36:56 -0500 |
---|---|---|
committer | Sean Hall <r.sean.hall@gmail.com> | 2021-04-29 13:58:14 -0500 |
commit | bcd3ee7ab858d62beb36af9f5986544b68a3dd35 (patch) | |
tree | 424c4e61a580b7c4b7481712f69ab0193d76b9c4 /src/dutil/dirutil.cpp | |
parent | d73c29407fe5ec6a0207af7d9c2547457ae0854c (diff) | |
download | wix-bcd3ee7ab858d62beb36af9f5986544b68a3dd35.tar.gz wix-bcd3ee7ab858d62beb36af9f5986544b68a3dd35.tar.bz2 wix-bcd3ee7ab858d62beb36af9f5986544b68a3dd35.zip |
Clean up more 32-bit assumptions.
Diffstat (limited to 'src/dutil/dirutil.cpp')
-rw-r--r-- | src/dutil/dirutil.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dutil/dirutil.cpp b/src/dutil/dirutil.cpp index b10e71f3..ae2c5e1c 100644 --- a/src/dutil/dirutil.cpp +++ b/src/dutil/dirutil.cpp | |||
@@ -400,7 +400,7 @@ extern "C" HRESULT DAPI DirGetCurrent( | |||
400 | DirExitOnFailure(hr, "Failed to determine size of current directory."); | 400 | DirExitOnFailure(hr, "Failed to determine size of current directory."); |
401 | } | 401 | } |
402 | 402 | ||
403 | DWORD cchRequired = ::GetCurrentDirectoryW(static_cast<DWORD>(cch), 0 == cch ? NULL : *psczCurrentDirectory); | 403 | DWORD cchRequired = ::GetCurrentDirectoryW((DWORD)min(DWORD_MAX, cch), 0 == cch ? NULL : *psczCurrentDirectory); |
404 | if (0 == cchRequired) | 404 | if (0 == cchRequired) |
405 | { | 405 | { |
406 | DirExitWithLastError(hr, "Failed to get current directory."); | 406 | DirExitWithLastError(hr, "Failed to get current directory."); |