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
187dec99
Commit
187dec99
authored
Jul 20, 2010
by
Damjan Jovanovic
Committed by
Alexandre Julliard
Jul 21, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winemenubuilder: Always initialize COM.
parent
10e1387f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
18 deletions
+9
-18
winemenubuilder.c
programs/winemenubuilder/winemenubuilder.c
+9
-18
No files found.
programs/winemenubuilder/winemenubuilder.c
View file @
187dec99
...
...
@@ -2775,13 +2775,6 @@ static BOOL Process_Link( LPCWSTR linkname, BOOL bWait )
return
1
;
}
r
=
CoInitialize
(
NULL
);
if
(
FAILED
(
r
)
)
{
WINE_ERR
(
"CoInitialize failed
\n
"
);
return
1
;
}
r
=
CoCreateInstance
(
&
CLSID_ShellLink
,
NULL
,
CLSCTX_INPROC_SERVER
,
&
IID_IShellLinkW
,
(
LPVOID
*
)
&
sl
);
if
(
FAILED
(
r
)
)
...
...
@@ -2817,8 +2810,6 @@ static BOOL Process_Link( LPCWSTR linkname, BOOL bWait )
IPersistFile_Release
(
pf
);
IShellLinkW_Release
(
sl
);
CoUninitialize
();
return
!
r
;
}
...
...
@@ -2845,13 +2836,6 @@ static BOOL Process_URL( LPCWSTR urlname, BOOL bWait )
return
1
;
}
r
=
CoInitialize
(
NULL
);
if
(
FAILED
(
r
)
)
{
WINE_ERR
(
"CoInitialize failed
\n
"
);
return
1
;
}
r
=
CoCreateInstance
(
&
CLSID_InternetShortcut
,
NULL
,
CLSCTX_INPROC_SERVER
,
&
IID_IUniformResourceLocatorW
,
(
LPVOID
*
)
&
url
);
if
(
FAILED
(
r
)
)
...
...
@@ -2882,8 +2866,6 @@ static BOOL Process_URL( LPCWSTR urlname, BOOL bWait )
IPersistFile_Release
(
pf
);
url
->
lpVtbl
->
Release
(
url
);
CoUninitialize
();
return
!
r
;
}
...
...
@@ -3116,11 +3098,19 @@ int PASCAL wWinMain (HINSTANCE hInstance, HINSTANCE prev, LPWSTR cmdline, int sh
LPWSTR
token
=
NULL
,
p
;
BOOL
bWait
=
FALSE
;
BOOL
bURL
=
FALSE
;
HRESULT
hr
;
int
ret
=
0
;
if
(
!
init_xdg
())
return
1
;
hr
=
CoInitialize
(
NULL
);
if
(
FAILED
(
hr
))
{
WINE_ERR
(
"could not initialize COM, error 0x%08X
\n
"
,
hr
);
return
1
;
}
for
(
p
=
cmdline
;
p
&&
*
p
;
)
{
token
=
next_token
(
&
p
);
...
...
@@ -3160,5 +3150,6 @@ int PASCAL wWinMain (HINSTANCE hInstance, HINSTANCE prev, LPWSTR cmdline, int sh
}
}
CoUninitialize
();
return
ret
;
}
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