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
9d4c9a0c
Commit
9d4c9a0c
authored
Jan 29, 2009
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jan 29, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Remove superfluous pointer casts.
parent
6c2aeaec
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
file.c
dlls/msvcrt/file.c
+2
-2
locale.c
dlls/msvcrt/locale.c
+1
-1
time.c
dlls/msvcrt/time.c
+2
-2
No files found.
dlls/msvcrt/file.c
View file @
9d4c9a0c
...
...
@@ -2109,7 +2109,7 @@ int CDECL MSVCRT__write(int fd, const void* buf, unsigned int count)
unsigned
int
i
,
j
,
nr_lf
;
char
*
p
=
NULL
;
const
char
*
q
;
const
char
*
s
=
(
const
char
*
)
buf
,
*
buf_start
=
(
const
char
*
)
buf
;
const
char
*
s
=
buf
,
*
buf_start
=
buf
;
/* find number of \n ( without preceding \r ) */
for
(
nr_lf
=
0
,
i
=
0
;
i
<
count
;
i
++
)
{
...
...
@@ -2123,7 +2123,7 @@ int CDECL MSVCRT__write(int fd, const void* buf, unsigned int count)
{
if
((
q
=
p
=
MSVCRT_malloc
(
count
+
nr_lf
)))
{
for
(
s
=
(
const
char
*
)
buf
,
i
=
0
,
j
=
0
;
i
<
count
;
i
++
)
for
(
s
=
buf
,
i
=
0
,
j
=
0
;
i
<
count
;
i
++
)
{
if
(
s
[
i
]
==
'\n'
)
{
...
...
dlls/msvcrt/locale.c
View file @
9d4c9a0c
...
...
@@ -265,7 +265,7 @@ static void msvcrt_set_ctype(unsigned int codepage, LCID lcid)
{
int
i
;
char
str
[
3
];
unsigned
char
*
traverse
=
(
unsigned
char
*
)
cp
.
LeadByte
;
unsigned
char
*
traverse
=
cp
.
LeadByte
;
memset
(
MSVCRT_current_ctype
,
0
,
sizeof
(
MSVCRT__ctype
));
MSVCRT___lc_codepage
=
codepage
;
...
...
dlls/msvcrt/time.c
View file @
9d4c9a0c
...
...
@@ -173,7 +173,7 @@ MSVCRT_wchar_t* CDECL _wstrdate(MSVCRT_wchar_t* date)
{
static
const
WCHAR
format
[]
=
{
'M'
,
'M'
,
'\''
,
'/'
,
'\''
,
'd'
,
'd'
,
'\''
,
'/'
,
'\''
,
'y'
,
'y'
,
0
};
GetDateFormatW
(
LOCALE_NEUTRAL
,
0
,
NULL
,
format
,
(
LPWSTR
)
date
,
9
);
GetDateFormatW
(
LOCALE_NEUTRAL
,
0
,
NULL
,
format
,
date
,
9
);
return
date
;
}
...
...
@@ -197,7 +197,7 @@ MSVCRT_wchar_t* CDECL _wstrtime(MSVCRT_wchar_t* time)
{
static
const
WCHAR
format
[]
=
{
'H'
,
'H'
,
'\''
,
':'
,
'\''
,
'm'
,
'm'
,
'\''
,
':'
,
'\''
,
's'
,
's'
,
0
};
GetTimeFormatW
(
LOCALE_NEUTRAL
,
0
,
NULL
,
format
,
(
LPWSTR
)
time
,
9
);
GetTimeFormatW
(
LOCALE_NEUTRAL
,
0
,
NULL
,
format
,
time
,
9
);
return
time
;
}
...
...
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