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
ea398097
Commit
ea398097
authored
Nov 02, 2008
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Nov 03, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winedos: Do not cast NULL.
parent
b963dd00
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
devices.c
dlls/winedos/devices.c
+1
-1
ppdev.c
dlls/winedos/ppdev.c
+2
-2
No files found.
dlls/winedos/devices.c
View file @
ea398097
...
...
@@ -187,7 +187,7 @@ static void WINAPI con_interrupt(CONTEXT86*ctx)
DOS_DATASEG
*
dataseg
=
(
DOS_DATASEG
*
)
lol
;
BYTE
*
linebuffer
=
dataseg
->
buffer
;
BYTE
*
curbuffer
=
(
lol
->
offs_unread_CON
)
?
(((
BYTE
*
)
dataseg
)
+
lol
->
offs_unread_CON
)
:
(
BYTE
*
)
NULL
;
(((
BYTE
*
)
dataseg
)
+
lol
->
offs_unread_CON
)
:
NULL
;
DOS_DEVICE_HEADER
*
con
=
dataseg
->
dev
;
DWORD
w
;
...
...
dlls/winedos/ppdev.c
View file @
ea398097
...
...
@@ -139,7 +139,7 @@ char IO_pp_init(void)
ERR
(
"Is the ppdev module loaded?
\n
"
);
continue
;
}
userbase
=
strtol
(
name
,(
char
**
)
NULL
,
16
);
userbase
=
strtol
(
name
,
NULL
,
16
);
if
(
errno
==
ERANGE
)
{
WARN
(
"Configuration: Invalid base %s for %s
\n
"
,
name
,
buffer
);
...
...
@@ -193,7 +193,7 @@ char IO_pp_init(void)
PPDeviceList
[
nports
].
lastaccess
=
GetTickCount
();
if
(
timeout
)
{
PPDeviceList
[
nports
].
timeout
=
strtol
(
timeout
,(
char
**
)
NULL
,
10
);
PPDeviceList
[
nports
].
timeout
=
strtol
(
timeout
,
NULL
,
10
);
if
(
errno
==
ERANGE
)
{
WARN
(
"Configuration: Invalid timeout %s in configuration for %s, Setting to 0
\n
"
,
...
...
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