Fix more warnings-are-errors from MSVC


Two more warnings were found:
* a variable "value" in the structured binding was shadowing the
  function argument with the same name;
* the windowsBits variable was potentially uninitialized.

The second warning is bogus, becuase the switch() below covers
all cases, but it's easier to initialize the variable with 0 to
make the compiler happy.

Change-Id: Ia540d7fe306db82def1ecf31ea65780d405642c5
Reviewed-by: Tatiana Borisova <tatiana.borisova@qt.io>
Reviewed-by: Rym Bouabid <rym.bouabid@qt.io>
commitadba5d0f3053074b1f68af6e2755d11b7650a4ad
parent217344adcbc9814752723a31b3c2fc4d7ae957b8
authorIvan Solovev <ivan.solovev@qt.io>
committerIvan Solovev <ivan.solovev@qt.io>
commit timeThu, 6 Nov 2025 11:27:59 +0100