mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 20:15:59 +00:00
A free Windows-compatible Operating System - mirrored from GitHub
![]() Fix completely non-standard, broken and retarded definition of GET_UNALIGNED_W for 64 bit architectures The function is supposed to read an unaligned little endian USHORT value. The old version copied the 2 bytes with memcpy to an aligned stack variable and then (bug bug) read the unaligned value directly (discarding the result of the previous operation) and passed it to bswap if neccessary. The new function simply reads the 2 bytes and combines them using << and |. svn path=/trunk/; revision=53348 |
||
---|---|---|
reactos | ||
rosapps | ||
rostests | ||
wallpaper |