diff --git a/deploy/rippled.nsi b/deploy/rippled.nsi index f77f8bc68..2d40443b0 100644 --- a/deploy/rippled.nsi +++ b/deploy/rippled.nsi @@ -1,7 +1,7 @@ Name "Rippled" ; The file to write -OutFile "ripple install.exe" +OutFile "ripple_install.exe" ; The default installation directory InstallDir "$PROGRAMFILES\Rippled" @@ -26,7 +26,7 @@ Section "" ;No components page, name is not important ; Put file there File ..\Release\rippled.exe - File ..\*.dll + ;File ..\*.dll ;File "start rippled.bat" File rippled.cfg File validators.txt diff --git a/src/cpp/ripple/utils.cpp b/src/cpp/ripple/utils.cpp index 8dc565924..4a67a2311 100644 --- a/src/cpp/ripple/utils.cpp +++ b/src/cpp/ripple/utils.cpp @@ -318,7 +318,7 @@ uint64_t htobe64(uint64_t value) uint64_t be64toh(uint64_t value) { - return(value); + return(_byteswap_uint64(value)); } uint32_t htobe32(uint32_t value) @@ -326,7 +326,10 @@ uint32_t htobe32(uint32_t value) return(htonl(value)); } -uint32_t be32toh(uint32_t value){ return(value); } +uint32_t be32toh(uint32_t value) +{ + return( _byteswap_ulong(value)); +} #endif