summaryrefslogtreecommitdiff
path: root/src/modules/skin/sounds.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-06-21 20:13:53 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-06-21 20:13:53 +0000
commit341d37fdcb9ed6469974ec5d0083c7c376618656 (patch)
tree0cd95c8ceb1b89a9101ecb48d185dd46c203021b /src/modules/skin/sounds.cpp
parent05b166901147b2c78b1ddae852c025f762f7f712 (diff)
fix for Unicode sound paths
git-svn-id: http://svn.miranda-ng.org/main/trunk@519 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/modules/skin/sounds.cpp')
-rw-r--r--src/modules/skin/sounds.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/skin/sounds.cpp b/src/modules/skin/sounds.cpp
index 3cc06bd20d..f0cfa1a62a 100644
--- a/src/modules/skin/sounds.cpp
+++ b/src/modules/skin/sounds.cpp
@@ -90,9 +90,9 @@ static INT_PTR ServiceSkinAddNewSound(WPARAM wParam, LPARAM lParam)
static int SkinPlaySoundDefault(WPARAM wParam, LPARAM lParam)
{
- char* pszFile = (char *) lParam;
+ TCHAR* pszFile = (TCHAR*) lParam;
if (pszFile && (DBGetContactSettingByte(NULL, "Skin", "UseSound", 0) || (int)wParam == 1))
- PlaySoundA(pszFile, NULL, SND_ASYNC | SND_FILENAME | SND_NOWAIT);
+ PlaySound(pszFile, NULL, SND_ASYNC | SND_FILENAME | SND_NOWAIT);
return 0;
}