Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
ed0da3f6
Commit
ed0da3f6
authored
Dec 12, 1999
by
Marcus Meissner
Committed by
Alexandre Julliard
Dec 12, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed 2 useless include winversion.h
Do not make autodetected version fix on first calls if it is Win31.
parent
128f1e70
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
18 deletions
+16
-18
listbox.c
controls/listbox.c
+0
-1
registry.c
misc/registry.c
+0
-1
version.c
misc/version.c
+16
-16
No files found.
controls/listbox.c
View file @
ed0da3f6
...
...
@@ -17,7 +17,6 @@
#include "combo.h"
#include "debugtools.h"
#include "tweak.h"
#include "winversion.h"
DEFAULT_DEBUG_CHANNEL
(
listbox
)
DECLARE_DEBUG_CHANNEL
(
combo
)
...
...
misc/registry.c
View file @
ed0da3f6
...
...
@@ -45,7 +45,6 @@
#include "xmalloc.h"
#include "options.h"
#include "winreg.h"
#include "winversion.h"
#include "server.h"
#include "services.h"
...
...
misc/version.c
View file @
ed0da3f6
...
...
@@ -206,10 +206,14 @@ DWORD VERSION_GetLinkedDllVersion(PDB *pdb)
if
(
!
pdb
->
exe_modref
)
{
/* winn311 progs only link to user32 */
if
(
pdb
->
modref_list
&&
pdb
->
modref_list
->
next
)
return
WIN95
;
return
WIN31
;
if
(
!
pdb
->
modref_list
)
return
WIN31
;
/* FIXME: The above condition will never trigger, since all our
* standard dlls load their win32 equivalents. We have usually at
* this point: kernel32.dll and ntdll.dll.
*/
return
WIN95
;
}
/* First check the native dlls provided. These have to be
from one windows version */
...
...
@@ -235,13 +239,9 @@ DWORD VERSION_GetLinkedDllVersion(PDB *pdb)
{
DWORD
DllVersion
=
VERSION_GetSystemDLLVersion
(
wm
);
if
(
WinVersion
==
NB_WINDOWS_VERSIONS
)
{
WinVersion
=
DllVersion
;
}
else
{
if
(
WinVersion
!=
DllVersion
)
{
else
{
if
(
WinVersion
!=
DllVersion
)
{
ERR
(
"You mixed system dlls from different windows versions! Expect a chrash!
\n
"
);
return
WIN31
;
/* this may let the exe exiting */
}
...
...
@@ -304,16 +304,16 @@ DWORD VERSION_GetLinkedDllVersion(PDB *pdb)
WINDOWS_VERSION
VERSION_GetVersion
(
void
)
{
PDB
*
pdb
=
PROCESS_Current
();
if
(
versionForced
)
/* user has overridden any sensible checks */
return
defaultWinVersion
;
if
(
pdb
->
winver
==
0xffff
)
/* to be determined */
{
pdb
->
winver
=
VERSION_GetLinkedDllVersion
(
pdb
);
TRACE
(
"Autodetected: %s
\n
"
,
VERSION_GetVersionName
());
}
if
(
pdb
->
winver
==
0xffff
)
/* to be determined */
{
WINDOWS_VERSION
retver
=
VERSION_GetLinkedDllVersion
(
pdb
);
if
(
retver
!=
WIN31
)
pdb
->
winver
=
retver
;
return
retver
;
}
return
pdb
->
winver
;
}
...
...
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