From 23a378d2ae8b2800a355e37f8bc612aeace26fc9 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 26 Nov 2012 17:51:03 +0000 Subject: fix for 64-bit compilation git-svn-id: http://svn.miranda-ng.org/main/trunk@2505 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Xfire/src/tools.cpp | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'protocols/Xfire/src/tools.cpp') 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 -- cgit v1.2.3