[BROWSEUI] Do not clear a CComPtr with memset.

This commit is contained in:
Mark Jansen 2018-01-13 20:57:04 +01:00
parent 6d9a0d0fd4
commit e5f9029826
No known key found for this signature in database
GPG key ID: B39240EE84BEAE8B

View file

@ -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;