summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndre Muezerie <[email protected]>2026-04-23 17:19:29 -0400
committerAndre Muezerie <[email protected]>2026-04-23 17:19:29 -0400
commit58260dd4216d5e558fe6f218d1aa0935d59a18c5 (patch)
tree363b321ed68a1a54f80403ca712dd6e683886f1a
parent7652eb722d8e128d15b079d5c9ce5f1dee5be11d (diff)
Potentially uninitialized variable in bindview
These changes eliminate the warnings below in bindview.cpp by initializinf the variables mentioned. 1449 The status of this call to externally defined (SAL) GetCursorPos is not checked, potentially leaving pt uninitialized. 1528 The status of this call to externally defined (SAL) GetCursorPos is not checked, potentially leaving pt uninitialized. 1825 The status of this call to externally defined (SAL) GetDeviceStatus is not checked, potentially leaving ulStatus uninitialized.
-rw-r--r--network/config/bindview/BINDVIEW.CPP6
1 files changed, 3 insertions, 3 deletions
diff --git a/network/config/bindview/BINDVIEW.CPP b/network/config/bindview/BINDVIEW.CPP
index 4231f7c4..8fee84be 100644
--- a/network/config/bindview/BINDVIEW.CPP
+++ b/network/config/bindview/BINDVIEW.CPP
@@ -1444,7 +1444,7 @@ VOID ShowComponentMenu (HWND hwndOwner,
LPARAM lParam)
{
ULONG ulSelection;
- POINT pt;
+ POINT pt{};
GetCursorPos( &pt );
ulSelection = (ULONG)TrackPopupMenu( hComponentSubMenu,
@@ -1496,7 +1496,7 @@ VOID ShowBindingPathMenu (HWND hwndOwner,
{
MENUITEMINFOW menuItemInfo;
ULONG ulSelection;
- POINT pt;
+ POINT pt{};
//
// Build the shortcut menu depending on whether path is
@@ -1787,7 +1787,7 @@ HTREEITEM AddToTreeEx (HWND hwndTree,
LPWSTR lpszId;
GUID guidClass;
BOOL fEnabled;
- ULONG ulStatus;
+ ULONG ulStatus{};
HTREEITEM hTreeItem;
TV_INSERTSTRUCTW tvInsertStruc;
HRESULT hr;