Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
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