From 17a1e895eb2d74e7f7c44bd6758c6af16a63fc7d Mon Sep 17 00:00:00 2001 From: Travis Nickles Date: Fri, 17 Nov 2017 01:50:18 -0600 Subject: [PATCH] Change name of compilation symbol --- DS4Windows/DS4Windows.csproj | 2 +- DS4Windows/HidLibrary/HidDevice.cs | 2 +- DS4Windows/HidLibrary/NativeMethods.cs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/DS4Windows/DS4Windows.csproj b/DS4Windows/DS4Windows.csproj index a69e73e..1fff1f5 100644 --- a/DS4Windows/DS4Windows.csproj +++ b/DS4Windows/DS4Windows.csproj @@ -87,7 +87,7 @@ false prompt MinimumRecommendedRules.ruleset - PLATFORM_X64 + WIN64 true diff --git a/DS4Windows/HidLibrary/HidDevice.cs b/DS4Windows/HidLibrary/HidDevice.cs index fcf496e..b435721 100644 --- a/DS4Windows/HidLibrary/HidDevice.cs +++ b/DS4Windows/HidLibrary/HidDevice.cs @@ -492,7 +492,7 @@ namespace DS4Windows else { byte[] buffer = new byte[126]; -#if PLATFORM_X64 +#if WIN64 ulong bufferLen = 126; #else uint bufferLen = 126; diff --git a/DS4Windows/HidLibrary/NativeMethods.cs b/DS4Windows/HidLibrary/NativeMethods.cs index c6b30b9..35d656a 100644 --- a/DS4Windows/HidLibrary/NativeMethods.cs +++ b/DS4Windows/HidLibrary/NativeMethods.cs @@ -391,7 +391,7 @@ namespace DS4Windows [DllImport("hid.dll")] static internal extern int HidP_GetValueCaps(short reportType, ref byte valueCaps, ref short valueCapsLength, IntPtr preparsedData); -#if PLATFORM_X64 +#if WIN64 [DllImport("hid.dll")] static internal extern bool HidD_GetSerialNumberString(IntPtr HidDeviceObject, byte[] Buffer, ulong BufferLength); #else