mirror of
git://source.winehq.org/git/wine.git
synced 2024-08-31 06:35:01 +00:00
Bug fixes related to sparc 4-byte boundary alignment.
This commit is contained in:
parent
c6ff9064d0
commit
04fd4a2756
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue