Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VLC
Manage
Activity
Members
Labels
Plan
Issues
4k
Issue boards
Milestones
Code
Merge requests
451
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VideoLAN
VLC
Commits
5c5ebd19
Commit
5c5ebd19
authored
7 years ago
by
Rémi Denis-Courmont
Browse files
Options
Downloads
Patches
Plain Diff
win32: call SetDllDirectort() directly
This looks like cargo cult. The function exists since XP SP1.
parent
ba108368
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bin/winvlc.c
+3
-6
3 additions, 6 deletions
bin/winvlc.c
with
3 additions
and
6 deletions
bin/winvlc.c
+
3
−
6
View file @
5c5ebd19
...
...
@@ -149,14 +149,11 @@ int WINAPI WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance,
if
(
mySetProcessDEPPolicy
)
mySetProcessDEPPolicy
(
PROCESS_DEP_ENABLE
);
/* Do NOT load any library from cwd. */
BOOL
(
WINAPI
*
mySetDllDirectoryA
)(
const
char
*
lpPathName
);
mySetDllDirectoryA
=
(
BOOL
(
WINAPI
*
)(
const
char
*
))
GetProcAddress
(
h_Kernel32
,
"SetDllDirectoryA"
);
if
(
mySetDllDirectoryA
)
mySetDllDirectoryA
(
""
);
}
/* Do NOT load any library from cwd. */
SetDllDirectory
(
TEXT
(
""
));
/***
* The LoadLibrary* calls from the modules and the 3rd party code
* will search in SYSTEM32 only
...
...
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