diff options
| author | George Hazan <george.hazan@gmail.com> | 2014-02-10 21:37:41 +0000 | 
|---|---|---|
| committer | George Hazan <george.hazan@gmail.com> | 2014-02-10 21:37:41 +0000 | 
| commit | ee68ac82d5aabb596e8bd0f2b9286827ca2ce545 (patch) | |
| tree | 2b330d60da88d6c195ae1943ad93fe2b393469fd /plugins/AutoShutdown/src | |
| parent | 6aff7a968c46f4080a24bd372c6ec1337766adf7 (diff) | |
these conversions aren't needed either
git-svn-id: http://svn.miranda-ng.org/main/trunk@8088 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/AutoShutdown/src')
| -rw-r--r-- | plugins/AutoShutdown/src/watcher.cpp | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/AutoShutdown/src/watcher.cpp b/plugins/AutoShutdown/src/watcher.cpp index 5ece5c84df..70111eaa44 100644 --- a/plugins/AutoShutdown/src/watcher.cpp +++ b/plugins/AutoShutdown/src/watcher.cpp @@ -203,7 +203,7 @@ static int StatusSettingChanged(WPARAM wParam,LPARAM lParam)  	if (currentWatcherType&SDWTF_STATUS) {
  		DBCONTACTWRITESETTING *dbcws=(DBCONTACTWRITESETTING*)lParam;
   		if ((HANDLE)wParam != NULL && dbcws->value.wVal==ID_STATUS_OFFLINE && !lstrcmpA(dbcws->szSetting,"Status")) {
 -			char *pszProto = GetContactProto((MCONTACT)wParam);
 +			char *pszProto = GetContactProto(wParam);
  			if (pszProto != NULL && !lstrcmpA(dbcws->szModule,pszProto))
  				if (CheckAllContactsOffline())
  					ShutdownAndStopWatcher();
 @@ -239,7 +239,7 @@ static BOOL CALLBACK CpuUsageWatcherProc(BYTE nCpuUsage,LPARAM lParam)  static int WeatherUpdated(WPARAM wParam,LPARAM lParam)
  {
 -	char *pszProto = GetContactProto((MCONTACT)wParam);
 +	char *pszProto = GetContactProto(wParam);
  	if ((BOOL)lParam && pszProto != NULL && CallProtoService(pszProto,PS_GETSTATUS,0,0)==THUNDER)
  		if (db_get_b(NULL,"AutoShutdown","WeatherShutdown",SETTING_WEATHERSHUTDOWN_DEFAULT))
  			ServiceShutdown(SDSDT_SHUTDOWN,TRUE);
  | 
