loplugin:nullptr (clang-cl)
Change-Id: I302cb394b1883932d4cb7b160a4a74185dbff04b
This commit is contained in:
@@ -368,8 +368,8 @@ extern "C" UINT __stdcall UnpackMSUForInstall(MSIHANDLE hInstall)
|
|||||||
MsiSetPropertyW(hInstall, L"cleanup_msu", sBinary.c_str()));
|
MsiSetPropertyW(hInstall, L"cleanup_msu", sBinary.c_str()));
|
||||||
|
|
||||||
{
|
{
|
||||||
HANDLE hFile = CreateFileW(sBinary.c_str(), GENERIC_WRITE, 0, 0, CREATE_ALWAYS,
|
HANDLE hFile = CreateFileW(sBinary.c_str(), GENERIC_WRITE, 0, nullptr, CREATE_ALWAYS,
|
||||||
FILE_ATTRIBUTE_NORMAL, 0);
|
FILE_ATTRIBUTE_NORMAL, nullptr);
|
||||||
if (hFile == INVALID_HANDLE_VALUE)
|
if (hFile == INVALID_HANDLE_VALUE)
|
||||||
ThrowLastError("CreateFileW");
|
ThrowLastError("CreateFileW");
|
||||||
auto aFileHandleGuard(Guard(hFile));
|
auto aFileHandleGuard(Guard(hFile));
|
||||||
|
Reference in New Issue
Block a user