* dcrt0.cc (dll_crt0_1): Fix typo in call to sys_wcstombs.
* miscfuncs.cc (next_char): Initialize ret to keep gcc happy.
This commit is contained in:
parent
8eb981a37c
commit
6542ddc3be
@ -1,3 +1,8 @@
|
||||
2008-02-11 Corinna Vinschen <corinna@vinschen.de>
|
||||
|
||||
* dcrt0.cc (dll_crt0_1): Fix typo in call to sys_wcstombs.
|
||||
* miscfuncs.cc (next_char): Initialize ret to keep gcc happy.
|
||||
|
||||
2008-02-10 Corinna Vinschen <corinna@vinschen.de>
|
||||
|
||||
* Makefile.in (DLL_OFILES): Add ntea.o.
|
||||
|
@ -857,7 +857,7 @@ dll_crt0_1 (void *)
|
||||
if (!__argc)
|
||||
{
|
||||
PWCHAR wline = GetCommandLineW ();
|
||||
size_t size = sys_wcstombs (NULL, size, wline);
|
||||
size_t size = sys_wcstombs (NULL, 0, wline);
|
||||
char *line = (char *) alloca (size);
|
||||
sys_wcstombs (line, size, wline);
|
||||
|
||||
|
@ -236,7 +236,7 @@ is_cp_multibyte (UINT cp)
|
||||
const unsigned char *
|
||||
next_char (UINT cp, const unsigned char *str, const unsigned char *end)
|
||||
{
|
||||
const unsigned char *ret;
|
||||
const unsigned char *ret = NULL;
|
||||
|
||||
if (str >= end)
|
||||
return end;
|
||||
|
Loading…
Reference in New Issue
Block a user