Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
170e5561
Commit
170e5561
authored
Feb 07, 2014
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
win32: call SetErrorMode() while still single-threaded
(This is required by MSDN.)
parent
81055423
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
5 deletions
+7
-5
bin/cachegen.c
bin/cachegen.c
+6
-1
bin/winvlc.c
bin/winvlc.c
+1
-0
src/win32/plugin.c
src/win32/plugin.c
+0
-4
No files found.
bin/cachegen.c
View file @
170e5561
...
...
@@ -26,10 +26,12 @@
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#ifdef HAVE_GETOPT_H
# include <getopt.h>
#endif
#ifdef WIN32
# include <windows.h>
#endif
static
void
version
(
void
)
{
...
...
@@ -47,6 +49,9 @@ static void usage (const char *path)
int
main
(
int
argc
,
char
*
argv
[])
{
#ifdef WIN32
SetErrorMode
(
SEM_FAILCRITICALERRORS
);
#endif
static
const
struct
option
opts
[]
=
{
{
"force"
,
no_argument
,
NULL
,
'f'
},
...
...
bin/winvlc.c
View file @
170e5561
...
...
@@ -79,6 +79,7 @@ int WINAPI WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance,
putenv
(
"VLC_DATA_PATH=Z:"
TOP_SRCDIR
"/share"
);
#endif
SetErrorMode
(
SEM_FAILCRITICALERRORS
);
HeapSetInformation
(
NULL
,
HeapEnableTerminationOnCorruption
,
NULL
,
0
);
/* SetProcessDEPPolicy */
...
...
src/win32/plugin.c
View file @
170e5561
...
...
@@ -58,13 +58,9 @@ int module_Load( vlc_object_t *p_this, const char *psz_file,
return
-
1
;
module_handle_t
handle
;
/* FIXME: this is not thread-safe -- Courmisch */
UINT
mode
=
SetErrorMode
(
SEM_FAILCRITICALERRORS
);
SetErrorMode
(
mode
|
SEM_FAILCRITICALERRORS
);
handle
=
LoadLibraryW
(
wfile
);
SetErrorMode
(
mode
);
free
(
wfile
);
if
(
handle
==
NULL
)
...
...
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