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
f231ef56
Commit
f231ef56
authored
Jun 13, 2005
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed references to obsolete configuration entries.
parent
d5fce697
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
39 deletions
+12
-39
int11.c
dlls/winedos/int11.c
+12
-39
No files found.
dlls/winedos/int11.c
View file @
f231ef56
...
...
@@ -28,7 +28,6 @@
#include "windef.h"
#include "winbase.h"
#include "winreg.h"
#include "dosexe.h"
#include "wine/unicode.h"
#include "wine/debug.h"
...
...
@@ -83,52 +82,26 @@ void WINAPI DOSVM_Int11Handler( CONTEXT86 *context )
for
(
x
=
0
;
x
<
9
;
x
++
)
{
HKEY
hkey
;
char
option
[
10
];
char
temp
[
256
];
HANDLE
handle
;
char
file
[
10
];
/* serial port name */
strcpy
(
option
,
"COMx"
);
option
[
3
]
=
'1'
+
x
;
option
[
4
]
=
'\0'
;
/* default value */
strcpy
(
temp
,
"*"
);
if
(
!
RegOpenKeyA
(
HKEY_LOCAL_MACHINE
,
"Software
\\
Wine
\\
Wine
\\
Config
\\
serialports"
,
&
hkey
))
sprintf
(
file
,
"
\\\\
.
\\
COM%d"
,
x
+
1
);
handle
=
CreateFileA
(
file
,
0
,
FILE_SHARE_READ
|
FILE_SHARE_WRITE
,
NULL
,
OPEN_EXISTING
,
0
,
0
);
if
(
handle
!=
INVALID_HANDLE_VALUE
)
{
DWORD
type
;
DWORD
count
=
sizeof
(
temp
);
RegQueryValueExA
(
hkey
,
option
,
0
,
&
type
,
temp
,
&
count
);
RegCloseKey
(
hkey
);
}
if
(
strcmp
(
temp
,
"*"
)
&&
*
temp
!=
'\0'
)
CloseHandle
(
handle
);
serialports
++
;
/* parallel port name */
strcpy
(
option
,
"LPTx"
);
option
[
3
]
=
'1'
+
x
;
option
[
4
]
=
'\0'
;
/* default value */
strcpy
(
temp
,
"*"
);
if
(
!
RegOpenKeyA
(
HKEY_LOCAL_MACHINE
,
"Software
\\
Wine
\\
Wine
\\
Config
\\
parallelports"
,
&
hkey
))
{
DWORD
type
;
DWORD
count
=
sizeof
(
temp
);
RegQueryValueExA
(
hkey
,
option
,
0
,
&
type
,
temp
,
&
count
);
RegCloseKey
(
hkey
);
}
if
(
strcmp
(
temp
,
"*"
)
&&
*
temp
!=
'\0'
)
sprintf
(
file
,
"
\\\\
.
\\
LPT%d"
,
x
+
1
);
handle
=
CreateFileA
(
file
,
0
,
FILE_SHARE_READ
|
FILE_SHARE_WRITE
,
NULL
,
OPEN_EXISTING
,
0
,
0
);
if
(
handle
!=
INVALID_HANDLE_VALUE
)
{
CloseHandle
(
handle
);
parallelports
++
;
}
}
if
(
serialports
>
7
)
/* 3 bits -- maximum value = 7 */
serialports
=
7
;
...
...
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