From 4dcc7eda5cc9c36386b870a7f4330121267bb539 Mon Sep 17 00:00:00 2001 From: Date: Sat, 6 Feb 2016 17:31:52 -0500 Subject: [PATCH] [Settings] Replace DWORD w/ unsigned long or maybe uint32_t. --- Source/Settings/Settings.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Source/Settings/Settings.cpp b/Source/Settings/Settings.cpp index 4f055f052..def8e400d 100644 --- a/Source/Settings/Settings.cpp +++ b/Source/Settings/Settings.cpp @@ -1,4 +1,6 @@ #include + +#include #include "Settings.h" enum SettingLocation { @@ -23,7 +25,7 @@ enum SettingDataType { }; typedef struct { - DWORD dwSize; + uint32_t dwSize; int DefaultStartRange; int SettingStartRange; int MaximumSettings; @@ -34,9 +36,9 @@ typedef struct { const char * (*GetSettingSz) ( void * handle, int ID, char * Buffer, int BufferLen ); void (*SetSetting) ( void * handle, int ID, unsigned int Value ); void (*SetSettingSz) ( void * handle, int ID, const char * Value ); - void (*RegisterSetting) ( void * handle, int ID, int DefaultID, SettingDataType Type, - SettingLocation Location, const char * Category, const char * DefaultStr, DWORD Value ); - void (*UseUnregisteredSetting) (int ID); + void (*RegisterSetting) (void * handle, int ID, int DefaultID, SettingDataType Type, + SettingLocation Location, const char * Category, const char * DefaultStr, uint32_t Value); + void (*UseUnregisteredSetting) (int ID); } PLUGIN_SETTINGS; typedef struct {