summaryrefslogtreecommitdiff
path: root/protocols/Xfire/src/tools.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-11-26 17:51:03 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-11-26 17:51:03 +0000
commit23a378d2ae8b2800a355e37f8bc612aeace26fc9 (patch)
tree93ae9768b704d1e9bfb190077c292d13ae675dde /protocols/Xfire/src/tools.cpp
parentdeb1535897b89ae8981279c5af5479a7b7c17f66 (diff)
fix for 64-bit compilation
git-svn-id: http://svn.miranda-ng.org/main/trunk@2505 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Xfire/src/tools.cpp')
-rw-r--r--protocols/Xfire/src/tools.cpp16
1 files changed, 10 insertions, 6 deletions
diff --git a/protocols/Xfire/src/tools.cpp b/protocols/Xfire/src/tools.cpp
index b674610ad6..c5e6f01e8c 100644
--- a/protocols/Xfire/src/tools.cpp
+++ b/protocols/Xfire/src/tools.cpp
@@ -249,12 +249,16 @@ char* GetLaunchPath(char*launch)
//roll bits, vllt ein tickschneller als die funktionen von winsock
unsigned short r(unsigned short data)
{
- _asm {
- mov ax,data
- rol ax,8
- mov data,ax
- }
- return data;
+ #if defined(WIN64)
+ return ((data & 0xFF) << 8) + (data >> 8);
+ #else
+ _asm {
+ mov ax,data
+ rol ax,8
+ mov data,ax
+ }
+ return data;
+ #endif
}
//simple und hoffetnlich schnelle teamspeakdetection