Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
4261aaff
Commit
4261aaff
authored
Mar 06, 2010
by
Nikolay Sivov
Committed by
Alexandre Julliard
Mar 15, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32/shellview: Remove unneeded memset, release browser reference on failure.
parent
537e3821
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
shlview.c
dlls/shell32/shlview.c
+6
-3
No files found.
dlls/shell32/shlview.c
View file @
4261aaff
...
...
@@ -2068,7 +2068,7 @@ static HRESULT WINAPI IShellView2_fnCreateViewWindow2(IShellView2* iface, LPSV2C
/* Get our parent window */
IShellBrowser_AddRef
(
This
->
pShellBrowser
);
IShellBrowser_GetWindow
(
This
->
pShellBrowser
,
&
(
This
->
hWndParent
)
);
IShellBrowser_GetWindow
(
This
->
pShellBrowser
,
&
This
->
hWndParent
);
/* Try to get the ICommDlgBrowserInterface, adds a reference !!! */
This
->
pCommDlgBrowser
=
NULL
;
...
...
@@ -2079,7 +2079,6 @@ static HRESULT WINAPI IShellView2_fnCreateViewWindow2(IShellView2* iface, LPSV2C
/* If our window class has not been registered, then do so */
if
(
!
GetClassInfoW
(
shell32_hInstance
,
SV_CLASS_NAME
,
&
wc
))
{
ZeroMemory
(
&
wc
,
sizeof
(
wc
));
wc
.
style
=
CS_HREDRAW
|
CS_VREDRAW
;
wc
.
lpfnWndProc
=
ShellView_WndProc
;
wc
.
cbClsExtra
=
0
;
...
...
@@ -2102,7 +2101,11 @@ static HRESULT WINAPI IShellView2_fnCreateViewWindow2(IShellView2* iface, LPSV2C
CheckToolbar
(
This
);
if
(
!
wnd
)
return
E_FAIL
;
if
(
!
wnd
)
{
IShellBrowser_Release
(
This
->
pShellBrowser
);
return
E_FAIL
;
}
SetWindowPos
(
wnd
,
HWND_TOP
,
0
,
0
,
0
,
0
,
SWP_NOMOVE
|
SWP_NOSIZE
|
SWP_SHOWWINDOW
);
UpdateWindow
(
wnd
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment