mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-04 18:26:39 +02:00
[Analyzers][CPP]Turn on C26451 and fix code (#21230)
* Turn on rule as error and fixing code * Add packages to external include paths * Disable warrnings on external code.
This commit is contained in:
@@ -83,7 +83,7 @@ std::optional<SerializedSharedMemory> SerializedSharedMemory::create(const std::
|
||||
}
|
||||
|
||||
// We need an extra byte for locking if it's not readonly
|
||||
const ULARGE_INTEGER UISize{ .QuadPart = size + !read_only };
|
||||
const ULARGE_INTEGER UISize{ .QuadPart = static_cast<uint64_t>(size) + !read_only };
|
||||
|
||||
wil::unique_handle hMapFile{ CreateFileMappingW(INVALID_HANDLE_VALUE,
|
||||
maybe_attributes ? maybe_attributes : &sa,
|
||||
|
||||
Reference in New Issue
Block a user