From 58260dd4216d5e558fe6f218d1aa0935d59a18c5 Mon Sep 17 00:00:00 2001 From: Andre Muezerie Date: Thu, 23 Apr 2026 17:19:29 -0400 Subject: [PATCH] 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. --- network/config/bindview/BINDVIEW.CPP | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/network/config/bindview/BINDVIEW.CPP b/network/config/bindview/BINDVIEW.CPP index 4231f7c4c..8fee84be5 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;