diff options
Diffstat (limited to 'plugins/SeenPlugin/src')
| -rw-r--r-- | plugins/SeenPlugin/src/history.cpp | 2 | ||||
| -rw-r--r-- | plugins/SeenPlugin/src/seen.h | 13 | ||||
| -rw-r--r-- | plugins/SeenPlugin/src/userinfo.cpp | 2 | ||||
| -rw-r--r-- | plugins/SeenPlugin/src/utils.cpp | 8 | 
4 files changed, 11 insertions, 14 deletions
diff --git a/plugins/SeenPlugin/src/history.cpp b/plugins/SeenPlugin/src/history.cpp index 724cfd5612..fa90264fda 100644 --- a/plugins/SeenPlugin/src/history.cpp +++ b/plugins/SeenPlugin/src/history.cpp @@ -34,7 +34,7 @@ char* BuildSetting(int historyLast) {  	static char sztemp[15];
  	*setting = '\0';
  	strcat(setting, "History_");
 -	strcat(setting, itoa(historyLast, sztemp, 10));
 +	strcat(setting, _itot(historyLast, sztemp, 10));
  	return setting;
  }
 diff --git a/plugins/SeenPlugin/src/seen.h b/plugins/SeenPlugin/src/seen.h index ba2b13a6c2..574126459d 100644 --- a/plugins/SeenPlugin/src/seen.h +++ b/plugins/SeenPlugin/src/seen.h @@ -16,19 +16,17 @@ GNU General Public License for more details.  You should have received a copy of the GNU General Public License
  along with this program; if not, write to the Free Software
  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 -
 -File name      : $URL: http://svn.berlios.de/svnroot/repos/mgoodies/trunk/lastseen-mod/seen.h $
 -Revision       : $Rev: 1570 $
 -Last change on : $Date: 2007-12-30 01:30:07 +0300 (Вс, 30 дек 2007) $
 -Last change by : $Author: y_b $
  */
 +
  #ifndef _WIN32_IE
  #define _WIN32_IE 0x0300
  #endif
  #define ETDT_ENABLE         0x00000002
  #define ETDT_USETABTEXTURE  0x00000004
  #define ETDT_ENABLETAB      (ETDT_ENABLE  | ETDT_USETABTEXTURE)
 +
  #define MIRANDA_VER    0x0A00
 +#define _CRT_SECURE_NO_WARNINGS
  #include <windows.h>
  #include <win2k.h>
 @@ -37,25 +35,24 @@ Last change by : $Author: y_b $  #include <string.h>
  #include "resource.h"
 +
  #include <newpluginapi.h>
  #include <m_database.h>
  #include <m_langpack.h>
 -
  #include <m_system.h>
  #include <m_skin.h>
  #include <m_utils.h>
  #include <m_options.h>
  #include <m_userinfo.h>
  #include <m_clist.h>
 -#include <m_userinfo.h>
  #include <m_contacts.h>
  #include <m_message.h>
  #include <m_protosvc.h>
  #include <m_protocols.h>
  #include <m_popup.h>
 -#include <m_system.h>
  #include "m_tipper.h"
 +
  WCHAR *any_to_IdleNotidleUnknown(HANDLE hContact, const char *module_name, const char *setting_name, WCHAR *buff, int bufflen);
  WCHAR *any_to_Idle(HANDLE hContact, const char *module_name, const char *setting_name, WCHAR *buff, int bufflen);
 diff --git a/plugins/SeenPlugin/src/userinfo.cpp b/plugins/SeenPlugin/src/userinfo.cpp index 442860bb86..48d6523818 100644 --- a/plugins/SeenPlugin/src/userinfo.cpp +++ b/plugins/SeenPlugin/src/userinfo.cpp @@ -59,7 +59,7 @@ INT_PTR CALLBACK UserinfoDlgProc(HWND hdlg,UINT msg,WPARAM wparam,LPARAM lparam)  		case WM_INITDIALOG:
  			MainProc=(WNDPROC)SetWindowLongPtr(GetDlgItem(hdlg,IDC_INFOTEXT),GWLP_WNDPROC,(LONG)EditProc);
 -			szout=strdup(ParseString((!DBGetContactSetting(NULL,S_MOD,"UserStamp",&dbv)?dbv.pszVal:DEFAULT_USERSTAMP),(HANDLE)lparam,0));
 +			szout = _strdup(ParseString((!DBGetContactSetting(NULL,S_MOD,"UserStamp",&dbv)?dbv.pszVal:DEFAULT_USERSTAMP),(HANDLE)lparam,0));
  			SetDlgItemText(hdlg,IDC_INFOTEXT,szout);
  			if (!strcmp(szout,Translate("<unknown>")))
  			EnableWindow(GetDlgItem(hdlg,IDC_INFOTEXT),FALSE);
 diff --git a/plugins/SeenPlugin/src/utils.cpp b/plugins/SeenPlugin/src/utils.cpp index d989f9e999..279541907f 100644 --- a/plugins/SeenPlugin/src/utils.cpp +++ b/plugins/SeenPlugin/src/utils.cpp @@ -299,16 +299,16 @@ LBL_charPtr:  						switch(ci.type)
  						{
  							case CNFT_BYTE:
 -								ltoa(ci.bVal,szdbsetting,10);
 +								_ltot(ci.bVal, szdbsetting, 10);
  								break;
  							case CNFT_WORD:
 -								ltoa(ci.wVal,szdbsetting,10);
 +								_ltot(ci.wVal, szdbsetting, 10);
  								break;
  							case CNFT_DWORD:
 -								ltoa(ci.dVal,szdbsetting,10);
 +								_ltot(ci.dVal, szdbsetting, 10);
  								break;
  							case CNFT_ASCIIZ:
 -								strcpy(szdbsetting,ci.pszVal);
 +								strcpy(szdbsetting, ci.pszVal);
  								break;
  						}
  | 
