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
41a94504
Commit
41a94504
authored
Oct 29, 2011
by
Frédéric Delanoy
Committed by
Alexandre Julliard
Oct 31, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmd: Avoid unnecessary null pointer checks.
parent
2e2382bf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
8 deletions
+6
-8
wcmdmain.c
programs/cmd/wcmdmain.c
+6
-8
No files found.
programs/cmd/wcmdmain.c
View file @
41a94504
...
...
@@ -278,14 +278,12 @@ static void WCMD_output_asis_handle (DWORD std_handle, const WCHAR *message) {
ptr
++
;
};
if
(
*
ptr
==
'\n'
)
ptr
++
;
WCMD_output_asis_len
(
message
,
(
ptr
)
?
ptr
-
message
:
strlenW
(
message
),
handle
);
if
(
ptr
)
{
numChars
=
0
;
if
(
++
line_count
>=
max_height
-
1
)
{
line_count
=
0
;
WCMD_output_asis_len
(
pagedMessage
,
strlenW
(
pagedMessage
),
handle
);
WCMD_ReadFile
(
GetStdHandle
(
STD_INPUT_HANDLE
),
string
,
sizeof
(
string
)
/
sizeof
(
WCHAR
),
&
count
);
}
WCMD_output_asis_len
(
message
,
ptr
-
message
,
handle
);
numChars
=
0
;
if
(
++
line_count
>=
max_height
-
1
)
{
line_count
=
0
;
WCMD_output_asis_len
(
pagedMessage
,
strlenW
(
pagedMessage
),
handle
);
WCMD_ReadFile
(
GetStdHandle
(
STD_INPUT_HANDLE
),
string
,
sizeof
(
string
)
/
sizeof
(
WCHAR
),
&
count
);
}
}
while
(((
message
=
ptr
)
!=
NULL
)
&&
(
*
ptr
));
}
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