Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
2b81ece3
Commit
2b81ece3
authored
Aug 22, 2001
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Aug 22, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replaced PROFILE_ functions by RegQueryValueExA.
parent
b473a0f0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
5 deletions
+24
-5
comm16.c
dlls/user/comm16.c
+24
-5
No files found.
dlls/user/comm16.c
View file @
2b81ece3
...
...
@@ -45,11 +45,11 @@
#include "windef.h"
#include "winbase.h"
#include "wingdi.h"
#include "winreg.h"
#include "winuser.h"
#include "wine/winuser16.h"
#include "wine/port.h"
#include "heap.h"
#include "options.h"
#include "winerror.h"
#include "debugtools.h"
...
...
@@ -114,14 +114,24 @@ void COMM_Init(void)
{
int
x
;
char
option
[
10
],
temp
[
256
],
*
btemp
;
HKEY
hkey
;
for
(
x
=
0
;
x
!=
MAX_PORTS
;
x
++
)
{
strcpy
(
option
,
"COMx"
);
option
[
3
]
=
'1'
+
x
;
option
[
4
]
=
'\0'
;
PROFILE_GetWineIniString
(
"serialports"
,
option
,
"*"
,
temp
,
sizeof
(
temp
)
);
/* default value */
strcpy
(
temp
,
"*"
);
if
(
!
RegOpenKeyA
(
HKEY_LOCAL_MACHINE
,
"Software
\\
Wine
\\
Wine
\\
Config
\\
serialports"
,
&
hkey
))
{
DWORD
type
,
count
=
sizeof
(
temp
);
RegQueryValueExA
(
hkey
,
option
,
0
,
&
type
,
temp
,
&
count
);
RegCloseKey
(
hkey
);
}
if
(
!
strcmp
(
temp
,
"*"
)
||
*
temp
==
'\0'
)
COM
[
x
].
devicename
=
NULL
;
else
{
...
...
@@ -145,8 +155,17 @@ void COMM_Init(void)
option
[
3
]
=
'1'
+
x
;
option
[
4
]
=
'\0'
;
PROFILE_GetWineIniString
(
"parallelports"
,
option
,
"*"
,
temp
,
sizeof
(
temp
)
);
/* default value */
strcpy
(
temp
,
"*"
);
if
(
!
RegOpenKeyA
(
HKEY_LOCAL_MACHINE
,
"Software
\\
Wine
\\
Wine
\\
Config
\\
parallelports"
,
&
hkey
))
{
DWORD
type
,
count
=
sizeof
(
temp
);
RegQueryValueExA
(
hkey
,
option
,
0
,
&
type
,
temp
,
&
count
);
RegCloseKey
(
hkey
);
}
if
(
!
strcmp
(
temp
,
"*"
)
||
*
temp
==
'\0'
)
LPT
[
x
].
devicename
=
NULL
;
else
{
...
...
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