From a3ff000eb0e2e29c77c38d184d65597e1ad32fcc Mon Sep 17 00:00:00 2001 From: Tobias Weimer Date: Tue, 12 Feb 2013 19:10:10 +0000 Subject: fixed sound registration (fixes #233) git-svn-id: http://svn.miranda-ng.org/main/trunk@3581 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/AutoShutdown/src/utils.cpp | 26 -------------------------- 1 file changed, 26 deletions(-) (limited to 'plugins/AutoShutdown/src/utils.cpp') diff --git a/plugins/AutoShutdown/src/utils.cpp b/plugins/AutoShutdown/src/utils.cpp index 21f3349b6d..35dc388557 100644 --- a/plugins/AutoShutdown/src/utils.cpp +++ b/plugins/AutoShutdown/src/utils.cpp @@ -291,32 +291,6 @@ HANDLE IcoLib_AddIconRes(const char *pszDbName,const TCHAR *pszSection,const TCH return Skin_AddIcon(&sid); } -int SkinAddNewSoundBundled(const char *pszDbName,const char *pszSection,const char *pszDesc,const char *pszSubDir,const char *pszDefaultFile) -{ - SKINSOUNDDESCEX ssd; - char szFile[MAX_PATH],*p; - HANDLE hFile; - - ssd.cbSize=sizeof(ssd); - ssd.pszName=pszDbName; - ssd.pszSection=pszSection; - ssd.pszDescription=pszDesc; - ssd.pszDefaultFile=NULL; - if(GetModuleFileNameA(NULL,szFile,SIZEOF(szFile)-lstrlenA(pszSubDir)-lstrlenA(pszDefaultFile))) { - p=strrchr(szFile,'\\'); - if(p!=NULL) *(++p)=0; - lstrcatA(lstrcatA(szFile,pszSubDir),pszDefaultFile); /* buffer safe */ - /* check if sound file exist */ - hFile=CreateFileA(szFile,0,FILE_SHARE_READ,NULL,OPEN_EXISTING,0,NULL); - if(hFile!=INVALID_HANDLE_VALUE) { - ssd.pszDefaultFile=szFile; /* MS_UTILS_PATHTORELATIVET called automatically */ - CloseHandle(hFile); - } - } - Skin_AddSound(&ssd); - return 0; -} - void AddHotkey() { HOTKEYDESC hkd = {0}; -- cgit v1.2.3