Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
6eb0c353
Commit
6eb0c353
authored
Nov 09, 2005
by
Michael Jung
Committed by
Alexandre Julliard
Nov 09, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Initialize COM prior to displaying the file dialog.
parent
5c63332b
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
Makefile.in
dlls/commdlg/Makefile.in
+1
-0
filedlg.c
dlls/commdlg/filedlg.c
+6
-0
No files found.
dlls/commdlg/Makefile.in
View file @
6eb0c353
...
...
@@ -5,6 +5,7 @@ VPATH = @srcdir@
MODULE
=
comdlg32.dll
IMPORTLIB
=
libcomdlg32.
$(IMPLIBEXT)
IMPORTS
=
shell32 shlwapi comctl32 winspool user32 gdi32 advapi32 kernel32 ntdll
DELAYIMPORTS
=
ole32
EXTRALIBS
=
-luuid
C_SRCS
=
\
...
...
dlls/commdlg/filedlg.c
View file @
6eb0c353
...
...
@@ -250,6 +250,7 @@ static BOOL WINAPI GetFileName95(FileOpenDlgInfos *fodInfos)
LPCVOID
template
;
HRSRC
hRes
;
HANDLE
hDlgTmpl
=
0
;
HRESULT
hr
;
/* test for missing functionality */
if
(
fodInfos
->
ofnInfos
->
Flags
&
UNIMPLEMENTED_FLAGS
)
...
...
@@ -281,11 +282,16 @@ static BOOL WINAPI GetFileName95(FileOpenDlgInfos *fodInfos)
fodInfos
->
HookMsg
.
sharevistring
=
RegisterWindowMessageA
(
SHAREVISTRINGA
);
}
/* Some shell namespace extensions depend on COM being initialized. */
hr
=
CoInitialize
(
NULL
);
lRes
=
DialogBoxIndirectParamA
(
COMDLG32_hInstance
,
(
LPDLGTEMPLATEA
)
template
,
fodInfos
->
ofnInfos
->
hwndOwner
,
FileOpenDlgProc95
,
(
LPARAM
)
fodInfos
);
if
(
SUCCEEDED
(
hr
))
CoUninitialize
();
/* Unable to create the dialog */
if
(
lRes
==
-
1
)
...
...
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