Bug fixes related to sparc 4-byte boundary alignment.

This commit is contained in:
Juraj Hercek 2002-11-06 22:02:52 +00:00 committed by Alexandre Julliard
parent c6ff9064d0
commit 04fd4a2756
1 changed files with 3 additions and 3 deletions

View File

@ -260,10 +260,10 @@ DWORD convertHexCSVToHex(char *str, BYTE *buf, ULONG bufLen)
while (strPos < strLen)
{
char xbuf[3];
char wc;
UINT wc;
memcpy(xbuf,s,2); xbuf[3]='\0';
sscanf(xbuf,"%02x",(UINT*)&wc);
memcpy(xbuf,s,2); xbuf[2]='\0';
sscanf(xbuf,"%02x",&wc);
if (byteCount < bufLen)
*b++ =(unsigned char)wc;