Commit 05413fcc authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

Fixed some signed / unsigned pointer casts.

parent 3bebb0fe
......@@ -372,7 +372,7 @@ static void cvtSS16imaK(PACMDRVSTREAMINSTANCE adsi,
for (; nblock > 0; nblock--)
{
char* in_dst = dst;
unsigned char* in_dst = dst;
/* generate header */
sampleL = R16(src); src += 2;
......@@ -435,7 +435,7 @@ static void cvtMM16imaK(PACMDRVSTREAMINSTANCE adsi,
for (; nblock > 0; nblock--)
{
char* in_dst = dst;
unsigned char* in_dst = dst;
/* generate header */
/* FIXME: what about the last effective sample from previous block ??? */
......
......@@ -112,9 +112,9 @@ unsigned int _mbctoupper(unsigned int c)
unsigned char* _mbsdec(const unsigned char* start, const unsigned char* cur)
{
if(MSVCRT___mb_cur_max > 1)
return (char *)(_ismbstrail(start,cur-1) ? cur - 2 : cur -1);
return (unsigned char *)(_ismbstrail(start,cur-1) ? cur - 2 : cur -1);
return (char *)cur - 1; /* ASCII CP or SB char */
return (unsigned char *)cur - 1; /* ASCII CP or SB char */
}
/*********************************************************************
......
......@@ -125,7 +125,7 @@ static char *get_config_key (char *subkey, char *name, char *def)
end:
if (hSubKey) RegCloseKey(hSubKey);
return buffer;
return (char*)buffer;
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment