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
8478cece
Commit
8478cece
authored
Jul 24, 2014
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libwine: Update LD_LIBRARY_PATH in the current process from the JNI environment.
parent
c27e5ca5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
loader.c
libs/wine/loader.c
+6
-0
No files found.
libs/wine/loader.c
View file @
8478cece
...
...
@@ -873,6 +873,12 @@ static jstring wine_init_jni( JNIEnv *env, jobject obj, jobjectArray cmdline, jo
{
const
char
*
val
=
(
*
env
)
->
GetStringUTFChars
(
env
,
val_obj
,
NULL
);
setenv
(
var
,
val
,
1
);
if
(
!
strcmp
(
var
,
"LD_LIBRARY_PATH"
))
{
void
(
*
update_func
)(
const
char
*
)
=
dlsym
(
RTLD_DEFAULT
,
"android_update_LD_LIBRARY_PATH"
);
if
(
update_func
)
update_func
(
val
);
}
(
*
env
)
->
ReleaseStringUTFChars
(
env
,
val_obj
,
val
);
}
else
unsetenv
(
var
);
...
...
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