diff options
-rw-r--r-- | setup_native/source/win32/customactions/inst_msu/inst_msu.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/setup_native/source/win32/customactions/inst_msu/inst_msu.cxx b/setup_native/source/win32/customactions/inst_msu/inst_msu.cxx index b03d3cf3791c..fee4e6feb58b 100644 --- a/setup_native/source/win32/customactions/inst_msu/inst_msu.cxx +++ b/setup_native/source/win32/customactions/inst_msu/inst_msu.cxx @@ -368,8 +368,8 @@ extern "C" UINT __stdcall UnpackMSUForInstall(MSIHANDLE hInstall) MsiSetPropertyW(hInstall, L"cleanup_msu", sBinary.c_str())); { - HANDLE hFile = CreateFileW(sBinary.c_str(), GENERIC_WRITE, 0, 0, CREATE_ALWAYS, - FILE_ATTRIBUTE_NORMAL, 0); + HANDLE hFile = CreateFileW(sBinary.c_str(), GENERIC_WRITE, 0, nullptr, CREATE_ALWAYS, + FILE_ATTRIBUTE_NORMAL, nullptr); if (hFile == INVALID_HANDLE_VALUE) ThrowLastError("CreateFileW"); auto aFileHandleGuard(Guard(hFile)); |