diff --git a/src/drivers/win/ramwatch.cpp b/src/drivers/win/ramwatch.cpp index 2d357902..89c9a3ef 100644 --- a/src/drivers/win/ramwatch.cpp +++ b/src/drivers/win/ramwatch.cpp @@ -59,7 +59,15 @@ bool ResetWatches(); unsigned int GetCurrentValue(AddressWatcher& watch) { - return ReadValueAtHardwareAddress(watch.Address, watch.Size == 'd' ? 4 : watch.Size == 'w' ? 2 : 1); + unsigned int x = 0; + if (watch.Size == 2) //Do little endian + { + x = ReadValueAtHardwareAddress(watch.Address+1, 1) * 256; + x += ReadValueAtHardwareAddress(watch.Address, 1); + return x; + } + else + return ReadValueAtHardwareAddress(watch.Address, watch.Size == 'd' ? 4 : watch.Size == 'w' ? 2 : 1); } bool IsSameWatch(const AddressWatcher& l, const AddressWatcher& r)