mirror of
https://github.com/samba-team/samba.git
synced 2025-03-08 04:58:40 +03:00
Fixed double btyte-swap problems with bigendian architectures.
Jeremy.
This commit is contained in:
parent
d5be2334d4
commit
c96a77957b
@ -382,7 +382,8 @@ BOOL smb_io_notify_info_data_strings(char *desc,SPOOL_NOTIFY_INFO_DATA *data,
|
||||
x=data->notify_data.data.length+1;
|
||||
if(!prs_uint32("string length", ps, depth, &x ))
|
||||
return False;
|
||||
if(!prs_uint16s(True,"string",ps,depth,data->notify_data.data.string,x))
|
||||
/* These are already in little endian format. Don't byte swap. */
|
||||
if(!prs_uint8s(True,"string",ps,depth,(uint8 *)data->notify_data.data.string,x*2))
|
||||
return False;
|
||||
}
|
||||
if(!prs_align(ps))
|
||||
|
Loading…
x
Reference in New Issue
Block a user