https://git.reactos.org/?p=reactos.git;a=commitdiff;h=e5f90298267bca3551cb9…
commit e5f90298267bca3551cb95a67592647b0a26c833
Author: Mark Jansen <mark.jansen(a)reactos.org>
AuthorDate: Sat Jan 13 20:57:04 2018 +0100
Commit: Mark Jansen <mark.jansen(a)reactos.org>
CommitDate: Sat Jan 13 20:57:04 2018 +0100
[BROWSEUI] Do not clear a CComPtr with memset.
---
dll/win32/browseui/shellbrowser.cpp | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/dll/win32/browseui/shellbrowser.cpp b/dll/win32/browseui/shellbrowser.cpp
index 8126cefe3d..ada76502b3 100644
--- a/dll/win32/browseui/shellbrowser.cpp
+++ b/dll/win32/browseui/shellbrowser.cpp
@@ -273,6 +273,12 @@ private:
class barInfo
{
public:
+ barInfo()
+ {
+ memset(&borderSpace, 0, sizeof(borderSpace));
+ hwnd = NULL;
+ }
+
RECT borderSpace;
CComPtr<IUnknown> clientBar;
HWND hwnd;
@@ -703,7 +709,6 @@ CShellBrowser::CShellBrowser()
fCurrentDirectoryPIDL = NULL;
fStatusBar = NULL;
fStatusBarVisible = true;
- memset(fClientBars, 0, sizeof(fClientBars));
fCurrentMenuBar = NULL;
fHistoryObject = NULL;
fHistoryStream = NULL;