mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-07 11:46:30 +02:00
[Analyzers][CPP]Changes to fix warning 26493 on src/common (#23467)
* Changes to fix warning 26493 on src/common It will be multi PR change. This does not turn on the rule but fix the code under src/commom * int cast
This commit is contained in:
@@ -241,7 +241,7 @@ namespace registry
|
||||
switch (type)
|
||||
{
|
||||
case REG_DWORD:
|
||||
return *(DWORD*)buffer;
|
||||
return *reinterpret_cast<const DWORD*>(buffer);
|
||||
case REG_SZ:
|
||||
{
|
||||
if (!valueSize)
|
||||
|
||||
Reference in New Issue
Block a user