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
d7d40b7d
Commit
d7d40b7d
authored
Jul 03, 2007
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jul 04, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Remove superfluous casts of void pointers to other pointer types.
parent
53e05015
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
7 additions
and
7 deletions
+7
-7
console.c
dlls/msvcrt/console.c
+1
-1
exit.c
dlls/msvcrt/exit.c
+1
-1
file.c
dlls/msvcrt/file.c
+2
-2
process.c
dlls/msvcrt/process.c
+2
-2
undname.c
dlls/msvcrt/undname.c
+1
-1
No files found.
dlls/msvcrt/console.c
View file @
d7d40b7d
...
...
@@ -259,7 +259,7 @@ int CDECL _cprintf(const char* format, ...)
resize
=
(
written
==
-
1
?
resize
*
2
:
written
+
1
);
if
(
mem
!=
buf
)
MSVCRT_free
(
mem
);
if
(
!
(
mem
=
(
char
*
)
MSVCRT_malloc
(
resize
)))
if
(
!
(
mem
=
MSVCRT_malloc
(
resize
)))
return
MSVCRT_EOF
;
va_start
(
valist
,
format
);
}
...
...
dlls/msvcrt/exit.c
View file @
d7d40b7d
...
...
@@ -79,7 +79,7 @@ MSVCRT__onexit_t CDECL __dllonexit(MSVCRT__onexit_t func, MSVCRT__onexit_t **sta
if
(
++
len
<=
0
)
return
NULL
;
tmp
=
(
MSVCRT__onexit_t
*
)
MSVCRT_realloc
(
*
start
,
len
*
sizeof
(
tmp
));
tmp
=
MSVCRT_realloc
(
*
start
,
len
*
sizeof
(
tmp
));
if
(
!
tmp
)
return
NULL
;
*
start
=
tmp
;
...
...
dlls/msvcrt/file.c
View file @
d7d40b7d
...
...
@@ -3012,7 +3012,7 @@ int CDECL MSVCRT_vfprintf(MSVCRT_FILE* file, const char *format, va_list valist)
resize
=
(
written
==
-
1
?
resize
*
2
:
written
+
1
);
if
(
mem
!=
buf
)
MSVCRT_free
(
mem
);
if
(
!
(
mem
=
(
char
*
)
MSVCRT_malloc
(
resize
)))
if
(
!
(
mem
=
MSVCRT_malloc
(
resize
)))
return
MSVCRT_EOF
;
}
retval
=
MSVCRT_fwrite
(
mem
,
sizeof
(
*
mem
),
written
,
file
);
...
...
@@ -3038,7 +3038,7 @@ int CDECL MSVCRT_vfwprintf(MSVCRT_FILE* file, const MSVCRT_wchar_t *format, va_l
resize
=
(
written
==
-
1
?
resize
*
2
:
written
+
sizeof
(
MSVCRT_wchar_t
));
if
(
mem
!=
buf
)
MSVCRT_free
(
mem
);
if
(
!
(
mem
=
(
MSVCRT_wchar_t
*
)
MSVCRT_malloc
(
resize
*
sizeof
(
*
mem
))))
if
(
!
(
mem
=
MSVCRT_malloc
(
resize
*
sizeof
(
*
mem
))))
return
MSVCRT_EOF
;
}
retval
=
MSVCRT_fwrite
(
mem
,
sizeof
(
*
mem
),
written
,
file
);
...
...
dlls/msvcrt/process.c
View file @
d7d40b7d
...
...
@@ -106,7 +106,7 @@ static char* msvcrt_argvtos(const char* const* arg, char delim)
a
++
;
}
ret
=
(
char
*
)
MSVCRT_malloc
(
size
+
1
);
ret
=
MSVCRT_malloc
(
size
+
1
);
if
(
!
ret
)
return
NULL
;
...
...
@@ -161,7 +161,7 @@ static char* msvcrt_valisttos(const char* arg0, va_list alist, char delim)
arg
=
va_arg
(
alist
,
char
*
);
}
while
(
arg
!=
NULL
);
ret
=
(
char
*
)
MSVCRT_malloc
(
size
+
1
);
ret
=
MSVCRT_malloc
(
size
+
1
);
if
(
!
ret
)
return
NULL
;
...
...
dlls/msvcrt/undname.c
View file @
d7d40b7d
...
...
@@ -254,7 +254,7 @@ static char* str_printf(struct parsed_symbol* sym, const char* format, ...)
else
len
++
;
}
va_end
(
args
);
if
(
!
(
tmp
=
(
char
*
)
und_alloc
(
sym
,
len
)))
return
NULL
;
if
(
!
(
tmp
=
und_alloc
(
sym
,
len
)))
return
NULL
;
va_start
(
args
,
format
);
for
(
p
=
tmp
,
i
=
0
;
format
[
i
];
i
++
)
{
...
...
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