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