Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sebastian Mayr
wine
Commits
6eb0c353
Commit
6eb0c353
authored
19 years ago
by
Michael Jung
Committed by
Alexandre Julliard
19 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Initialize COM prior to displaying the file dialog.
parent
5c63332b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dlls/commdlg/Makefile.in
+1
-0
1 addition, 0 deletions
dlls/commdlg/Makefile.in
dlls/commdlg/filedlg.c
+6
-0
6 additions, 0 deletions
dlls/commdlg/filedlg.c
with
7 additions
and
0 deletions
dlls/commdlg/Makefile.in
+
1
−
0
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
=
\
...
...
This diff is collapsed.
Click to expand it.
dlls/commdlg/filedlg.c
+
6
−
0
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
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment