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
11401be9
Commit
11401be9
authored
Mar 26, 2019
by
Nikolay Sivov
Committed by
Alexandre Julliard
Mar 26, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winegstreamer: Actually pin module on initialization.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
d6fcab82
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
main.c
dlls/winegstreamer/main.c
+5
-5
No files found.
dlls/winegstreamer/main.c
View file @
11401be9
...
...
@@ -275,17 +275,17 @@ static BOOL CALLBACK init_gstreamer_proc(INIT_ONCE *once, void *param, void **ct
*
status
=
gst_init_check
(
&
argc
,
&
argv
,
&
err
);
if
(
*
status
)
{
HINSTANCE
new
handle
;
HINSTANCE
handle
;
TRACE
(
"Inititialized, version %s. Built with %d.%d.%d.
\n
"
,
gst_version_string
(),
GST_VERSION_MAJOR
,
GST_VERSION_MINOR
,
GST_VERSION_MICRO
);
/* Unloading glib is a bad idea.. it installs atexit handlers,
* so never unload the dll after loading */
GetModuleHandleExW
(
GET_MODULE_HANDLE_EX_FLAG_FROM_ADDRESS
,
(
LPCWSTR
)
hInst
,
&
new
handle
);
if
(
!
new
handle
)
ERR
(
"
Could not pin module %p
\n
"
,
hInst
);
GetModuleHandleExW
(
GET_MODULE_HANDLE_EX_FLAG_FROM_ADDRESS
|
GET_MODULE_HANDLE_EX_FLAG_PIN
,
(
LPCWSTR
)
hInst
,
&
handle
);
if
(
!
handle
)
ERR
(
"
Failed to pin module %p.
\n
"
,
hInst
);
start_dispatch_thread
();
}
...
...
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