Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
VLMC
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
21
Issues
21
List
Boards
Labels
Service Desk
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
VideoLAN
VLMC
Commits
0f360eef
Commit
0f360eef
authored
Sep 06, 2010
by
Hugo Beauzée-Luyssen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
win32: Don't load DLL from CWD
parent
cef6d735
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
src/Main/winvlmc.cpp
src/Main/winvlmc.cpp
+10
-0
No files found.
src/Main/winvlmc.cpp
View file @
0f360eef
...
...
@@ -38,5 +38,15 @@ LONG WINAPI vlc_exception_filter(struct _EXCEPTION_POINTERS *lpExceptionInfo)
int
main
(
int
argc
,
char
**
argv
)
{
HINSTANCE
h_Kernel32
=
LoadLibraryW
(
L"kernel32.dll"
);
if
(
h_Kernel32
)
{
BOOL
(
WINAPI
*
mySetDllDirectoryA
)(
const
char
*
lpPathName
);
/* Do NOT load any library from cwd. */
mySetDllDirectoryA
=
(
BOOL
WINAPI
(
*
)(
const
char
*
))
GetProcAddress
(
h_Kernel32
,
"SetDllDirectoryA"
);
if
(
mySetDllDirectoryA
)
mySetDllDirectoryA
(
""
);
FreeLibrary
(
h_kernel32
);
}
return
VLMCmain
(
argc
,
argv
);
}
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