From b2869173851aadf6182cc2038d9af9fc90aa9183 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 1 May 2018 15:15:38 +0200 Subject: [PATCH] loplugin:nullptr (clang-cl) Change-Id: I302cb394b1883932d4cb7b160a4a74185dbff04b --- setup_native/source/win32/customactions/inst_msu/inst_msu.cxx | 4 ++-- 1 file 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));