summaryrefslogtreecommitdiff
path: root/plugins/XSoundNotify/src/xsn_main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/XSoundNotify/src/xsn_main.cpp')
-rw-r--r--plugins/XSoundNotify/src/xsn_main.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/XSoundNotify/src/xsn_main.cpp b/plugins/XSoundNotify/src/xsn_main.cpp
index bb7e1ecb2f..c29a1ea852 100644
--- a/plugins/XSoundNotify/src/xsn_main.cpp
+++ b/plugins/XSoundNotify/src/xsn_main.cpp
@@ -108,7 +108,7 @@ static int ProcessEvent(WPARAM hContact, LPARAM lParam)
DBVARIANT dbv;
if (!isIgnoreSound && !db_get_ws(hContact, MODULENAME, SETTINGSKEY, &dbv)) {
wchar_t PlaySoundPath[MAX_PATH] = { 0 };
- PathToAbsoluteW(dbv.ptszVal, PlaySoundPath);
+ PathToAbsoluteW(dbv.pwszVal, PlaySoundPath);
isOwnSound = 0;
Skin_PlaySoundFile(PlaySoundPath);
db_free(&dbv);
@@ -125,7 +125,7 @@ static int ProcessEvent(WPARAM hContact, LPARAM lParam)
mir_free(value);
if (!isIgnoreAccSound && !db_get_ws(NULL, MODULENAME, pa->szModuleName, &dbv)) {
wchar_t PlaySoundPath[MAX_PATH] = { 0 };
- PathToAbsoluteW(dbv.ptszVal, PlaySoundPath);
+ PathToAbsoluteW(dbv.pwszVal, PlaySoundPath);
isAccSound = 0;
Skin_PlaySoundFile(PlaySoundPath);
db_free(&dbv);
@@ -153,7 +153,7 @@ static int ProcessChatEvent(WPARAM, LPARAM lParam)
DBVARIANT dbv;
if (!isIgnoreSound && !db_get_ws(hContact, MODULENAME, SETTINGSKEY, &dbv)) {
wchar_t PlaySoundPath[MAX_PATH] = { 0 };
- PathToAbsoluteW(dbv.ptszVal, PlaySoundPath);
+ PathToAbsoluteW(dbv.pwszVal, PlaySoundPath);
isOwnSound = 0;
Skin_PlaySoundFile(PlaySoundPath);
db_free(&dbv);
@@ -169,7 +169,7 @@ static int ProcessChatEvent(WPARAM, LPARAM lParam)
mir_free(value);
if (!isIgnoreAccSound && !db_get_ws(NULL, MODULENAME, pa->szModuleName, &dbv)) {
wchar_t PlaySoundPath[MAX_PATH] = { 0 };
- PathToAbsoluteW(dbv.ptszVal, PlaySoundPath);
+ PathToAbsoluteW(dbv.pwszVal, PlaySoundPath);
isAccSound = 0;
Skin_PlaySoundFile(PlaySoundPath);
db_free(&dbv);