Commit 04fd4a27 authored by Juraj Hercek's avatar Juraj Hercek Committed by Alexandre Julliard

Bug fixes related to sparc 4-byte boundary alignment.

parent c6ff9064
......@@ -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;
......
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