Skip to content

Commit 58260dd

Browse files
author
Andre Muezerie
committed
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.
1 parent 7652eb7 commit 58260dd

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

network/config/bindview/BINDVIEW.CPP

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1444,7 +1444,7 @@ VOID ShowComponentMenu (HWND hwndOwner,
14441444
LPARAM lParam)
14451445
{
14461446
ULONG ulSelection;
1447-
POINT pt;
1447+
POINT pt{};
14481448

14491449
GetCursorPos( &pt );
14501450
ulSelection = (ULONG)TrackPopupMenu( hComponentSubMenu,
@@ -1496,7 +1496,7 @@ VOID ShowBindingPathMenu (HWND hwndOwner,
14961496
{
14971497
MENUITEMINFOW menuItemInfo;
14981498
ULONG ulSelection;
1499-
POINT pt;
1499+
POINT pt{};
15001500

15011501
//
15021502
// Build the shortcut menu depending on whether path is
@@ -1787,7 +1787,7 @@ HTREEITEM AddToTreeEx (HWND hwndTree,
17871787
LPWSTR lpszId;
17881788
GUID guidClass;
17891789
BOOL fEnabled;
1790-
ULONG ulStatus;
1790+
ULONG ulStatus{};
17911791
HTREEITEM hTreeItem;
17921792
TV_INSERTSTRUCTW tvInsertStruc;
17931793
HRESULT hr;

0 commit comments

Comments
 (0)