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
55e1e0c5
Commit
55e1e0c5
authored
Apr 06, 2020
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
glu32: Use standard dlopen() instead of the libwine wrappers.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
907aaf9e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
glu.c
dlls/glu32/glu.c
+3
-6
No files found.
dlls/glu32/glu.c
View file @
55e1e0c5
...
...
@@ -27,7 +27,6 @@
#include "wine/wgl.h"
#include "wine/glu.h"
#include "wine/library.h"
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
glu
);
...
...
@@ -116,12 +115,10 @@ static INIT_ONCE init_once = INIT_ONCE_STATIC_INIT;
static
BOOL
WINAPI
load_libglu
(
INIT_ONCE
*
once
,
void
*
param
,
void
**
context
)
{
#ifdef SONAME_LIBGLU
char
error
[
256
];
if
((
libglu_handle
=
wine_dlopen
(
SONAME_LIBGLU
,
RTLD_NOW
,
error
,
sizeof
(
error
)
)))
if
((
libglu_handle
=
dlopen
(
SONAME_LIBGLU
,
RTLD_NOW
)))
TRACE
(
"loaded %s
\n
"
,
SONAME_LIBGLU
);
else
ERR
(
"Failed to load %s: %s
\n
"
,
SONAME_LIBGLU
,
error
);
ERR
(
"Failed to load %s: %s
\n
"
,
SONAME_LIBGLU
,
dlerror
()
);
#else
ERR
(
"libGLU is needed but support was not included at build time
\n
"
);
#endif
...
...
@@ -133,7 +130,7 @@ static void *load_glufunc( const char *name )
void
*
ret
;
if
(
!
InitOnceExecuteOnce
(
&
init_once
,
load_libglu
,
NULL
,
NULL
))
return
NULL
;
if
(
!
(
ret
=
wine_dlsym
(
libglu_handle
,
name
,
NULL
,
0
)))
ERR
(
"Can't find %s
\n
"
,
name
);
if
(
!
(
ret
=
dlsym
(
libglu_handle
,
name
)))
ERR
(
"Can't find %s
\n
"
,
name
);
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