diff options
-rw-r--r-- | include/m_skin.h | 3 | ||||
-rw-r--r-- | plugins/UserInfoEx/svc_reminder.cpp | 2 | ||||
-rw-r--r-- | src/modules/skin/sounds.cpp | 3 |
3 files changed, 4 insertions, 4 deletions
diff --git a/include/m_skin.h b/include/m_skin.h index 0a5da39889..ea95e7c4b5 100644 --- a/include/m_skin.h +++ b/include/m_skin.h @@ -145,9 +145,6 @@ typedef struct { DWORD dwFlags;
} SKINSOUNDDESCEX;
-#define SKINSOUNDDESC_SIZE_V1 (offsetof(SKINSOUNDDESCEX, pszSection))
-#define SKINSOUNDDESC_SIZE_V2 (offsetof(SKINSOUNDDESCEX, dwFlags))
-
// Old struct pre 0.3.4
typedef struct {
int cbSize;
diff --git a/plugins/UserInfoEx/svc_reminder.cpp b/plugins/UserInfoEx/svc_reminder.cpp index 5b64720656..203b98faa4 100644 --- a/plugins/UserInfoEx/svc_reminder.cpp +++ b/plugins/UserInfoEx/svc_reminder.cpp @@ -1188,7 +1188,7 @@ VOID SvcReminderLoadModule(VOID) {
// init sounds
SKINSOUNDDESCEX ssd = { 0 };
- ssd.cbSize = SKINSOUNDDESC_SIZE_V1;
+ ssd.cbSize = sizeof(ssd);
ssd.pszSection = LPGEN(MODNAME);
ssd.pszName = SOUND_BIRTHDAY_TODAY;
diff --git a/src/modules/skin/sounds.cpp b/src/modules/skin/sounds.cpp index 88c75b6d14..9dedbdf4d5 100644 --- a/src/modules/skin/sounds.cpp +++ b/src/modules/skin/sounds.cpp @@ -22,6 +22,9 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#include "..\..\core\commonheaders.h"
+#define SKINSOUNDDESC_SIZE_V1 (offsetof(SKINSOUNDDESCEX, pszSection))
+#define SKINSOUNDDESC_SIZE_V2 (offsetof(SKINSOUNDDESCEX, dwFlags))
+
struct SoundItem
{
char* name;
|