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
9da369b4
Commit
9da369b4
authored
Aug 02, 2015
by
Nikolay Sivov
Committed by
Alexandre Julliard
Aug 03, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comdlg32: Remove some casts.
parent
ae2794ea
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
7 deletions
+13
-7
itemdlg.c
dlls/comdlg32/itemdlg.c
+13
-7
No files found.
dlls/comdlg32/itemdlg.c
View file @
9da369b4
...
...
@@ -1194,7 +1194,7 @@ static HRESULT init_custom_controls(FileDialogImpl *This)
This
->
cctrls_hwnd
=
CreateWindowExW
(
0
,
ctrl_container_classname
,
NULL
,
WS_CLIPSIBLINGS
|
WS_CLIPCHILDREN
,
0
,
0
,
0
,
0
,
NULL
,
0
,
COMDLG32_hInstance
,
(
void
*
)
This
);
COMDLG32_hInstance
,
This
);
if
(
!
This
->
cctrls_hwnd
)
return
E_FAIL
;
...
...
@@ -1403,6 +1403,7 @@ static void update_layout(FileDialogImpl *This)
static
HRESULT
init_explorerbrowser
(
FileDialogImpl
*
This
)
{
IShellItem
*
psi_folder
;
IObjectWithSite
*
client
;
FOLDERSETTINGS
fos
;
RECT
rc
=
{
0
};
HRESULT
hr
;
...
...
@@ -1439,9 +1440,14 @@ static HRESULT init_explorerbrowser(FileDialogImpl *This)
IExplorerBrowser_SetFolderSettings
(
This
->
peb
,
&
fos
);
hr
=
IUnknown_SetSite
((
IUnknown
*
)
This
->
peb
,
(
IUnknown
*
)
This
);
if
(
FAILED
(
hr
))
ERR
(
"SetSite (ExplorerBrowser) failed.
\n
"
);
hr
=
IExplorerBrowser_QueryInterface
(
This
->
peb
,
&
IID_IObjectWithSite
,
(
void
**
)
&
client
);
if
(
hr
==
S_OK
)
{
hr
=
IObjectWithSite_SetSite
(
client
,
(
IUnknown
*
)
&
This
->
IFileDialog2_iface
);
IObjectWithSite_Release
(
client
);
if
(
FAILED
(
hr
))
ERR
(
"SetSite failed, 0x%08x
\n
"
,
hr
);
}
/* Browse somewhere */
psi_folder
=
This
->
psi_setfolder
?
This
->
psi_setfolder
:
This
->
psi_defaultfolder
;
...
...
@@ -3829,12 +3835,12 @@ static HRESULT FileDialog_constructor(IUnknown *pUnkOuter, REFIID riid, void **p
if
(
FAILED
(
hr
))
{
ERR
(
"Failed to initialize custom controls (0x%08x).
\n
"
,
hr
);
I
Unknown_Release
((
IUnknown
*
)
fdimpl
);
I
FileDialog2_Release
(
&
fdimpl
->
IFileDialog2_iface
);
return
E_FAIL
;
}
hr
=
I
Unknown_QueryInterface
((
IUnknown
*
)
fdimpl
,
riid
,
ppv
);
I
Unknown_Release
((
IUnknown
*
)
fdimpl
);
hr
=
I
FileDialog2_QueryInterface
(
&
fdimpl
->
IFileDialog2_iface
,
riid
,
ppv
);
I
FileDialog2_Release
(
&
fdimpl
->
IFileDialog2_iface
);
return
hr
;
}
...
...
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