Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
SRB2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Vlad Doc
SRB2
Commits
209f18cf
Commit
209f18cf
authored
Dec 13, 2018
by
Marco Z
Browse files
Options
Downloads
Patches
Plain Diff
Block exchndl.dll loading for XP/Vista users
parent
10294637
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/sdl/i_main.c
+8
-1
8 additions, 1 deletion
src/sdl/i_main.c
src/sdl12/i_main.c
+8
-1
8 additions, 1 deletion
src/sdl12/i_main.c
src/win32/win_main.c
+12
-1
12 additions, 1 deletion
src/win32/win_main.c
with
28 additions
and
3 deletions
src/sdl/i_main.c
+
8
−
1
View file @
209f18cf
...
...
@@ -149,6 +149,13 @@ int main(int argc, char **argv)
)
#endif
{
// XP and Vista users can't use the newest exchndl.dll
// and older exchndl.dll won't work with release builds >= 2.1.21
// Check for >= Version 6.1 (>= Win7)
DWORD
winversion
=
GetVersion
();
DWORD
major
=
(
DWORD
)(
LOBYTE
(
LOWORD
(
winversion
)));
DWORD
minor
=
(
DWORD
)(
HIBYTE
(
LOWORD
(
winversion
)));
if
(
major
>
6
||
(
major
==
6
&&
minor
>
0
))
LoadLibraryA
(
"exchndl.dll"
);
}
}
...
...
This diff is collapsed.
Click to expand it.
src/sdl12/i_main.c
+
8
−
1
View file @
209f18cf
...
...
@@ -218,6 +218,13 @@ int main(int argc, char **argv)
#endif
)
{
// XP and Vista users can't use the newest exchndl.dll
// and older exchndl.dll won't work with release builds >= 2.1.21
// Check for >= Version 6.1 (>= Win7)
DWORD
winversion
=
GetVersion
();
DWORD
major
=
(
DWORD
)(
LOBYTE
(
LOWORD
(
winversion
)));
DWORD
minor
=
(
DWORD
)(
HIBYTE
(
LOWORD
(
winversion
)));
if
(
major
>
6
||
(
major
==
6
&&
minor
>
0
))
LoadLibraryA
(
"exchndl.dll"
);
}
}
...
...
This diff is collapsed.
Click to expand it.
src/win32/win_main.c
+
12
−
1
View file @
209f18cf
...
...
@@ -663,8 +663,19 @@ int WINAPI WinMain (HINSTANCE hInstance,
#endif
// Try Dr MinGW's exception handler.
if (!pfnIsDebuggerPresent || !pfnIsDebuggerPresent())
{
#endif
// XP and Vista users can't use the newest exchndl.dll
// and older exchndl.dll won't work with release builds >= 2.1.21
// Check for >= Version 6.1 (Win7)
DWORD
winversion
=
GetVersion
();
DWORD
major
=
(
DWORD
)(
LOBYTE
(
LOWORD
(
winversion
)));
DWORD
minor
=
(
DWORD
)(
HIBYTE
(
LOWORD
(
winversion
)));
if
(
major
>
6
||
(
major
==
6
&&
minor
>
0
))
LoadLibraryA
(
"exchndl.dll"
);
#if 0
}
#endif
#ifndef __MINGW32__
prevExceptionFilter
=
SetUnhandledExceptionFilter
(
RecordExceptionInfo
);
...
...
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