diff options
Diffstat (limited to 'setup_native/source/win32/customactions/tools/seterror.cxx')
-rw-r--r-- | setup_native/source/win32/customactions/tools/seterror.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/setup_native/source/win32/customactions/tools/seterror.cxx b/setup_native/source/win32/customactions/tools/seterror.cxx index 9a7afed510a2..09aae2202ac7 100644 --- a/setup_native/source/win32/customactions/tools/seterror.cxx +++ b/setup_native/source/win32/customactions/tools/seterror.cxx @@ -65,17 +65,17 @@ void SetMsiErrorCode( int nErrorCode ) FALSE, // do not inherit the name sMemMapName ); // name of mapping object - if ( hMapFile == NULL ) // can not set error code + if ( hMapFile == nullptr ) // can not set error code { OutputDebugStringFormatW( L"Could not open map file (%d).\n", GetLastError() ); return; } - pBuf = (int*) MapViewOfFile( hMapFile, // handle to map object + pBuf = static_cast<int*>(MapViewOfFile( hMapFile, // handle to map object FILE_MAP_ALL_ACCESS, // read/write permission 0, 0, - sizeof( int ) ); + sizeof( int ) )); if ( pBuf ) { *pBuf = nErrorCode; |