From 6e53dfca72b932c4bdcd7aa02ca62bf8b2630eac Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 26 Jul 2016 09:20:25 +0000 Subject: less TCHARs: - TCHAR is replaced with wchar_t everywhere; - LPGENT replaced with either LPGENW or LPGEN; - fixes for ANSI plugins that improperly used _t functions; - TCHAR *t removed from MAllStrings; - ptszGroup, ptszTitle & ptszTab in OPTIONSDIALOGPAGE replaced with pwsz* git-svn-id: http://svn.miranda-ng.org/main/trunk@17133 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/YAMN/src/synchro.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'plugins/YAMN/src/synchro.cpp') diff --git a/plugins/YAMN/src/synchro.cpp b/plugins/YAMN/src/synchro.cpp index 6b37e151dc..e008fe9db0 100644 --- a/plugins/YAMN/src/synchro.cpp +++ b/plugins/YAMN/src/synchro.cpp @@ -14,7 +14,7 @@ // the structure's address is passed as the first parameter. // The lpszName parameter is the name of the object. Pass // NULL if you do not want to share the object. -BOOL WINAPI SWMRGInitialize(PSWMRG pSWMRG,TCHAR *Name); +BOOL WINAPI SWMRGInitialize(PSWMRG pSWMRG,wchar_t *Name); // Deletes the system resources associated with a SWMRG // structure. The structure must be deleted only when @@ -98,7 +98,7 @@ void WINAPI SWMRGDelete(PSWMRG pSWMRG) CloseHandle(pSWMRG->hFinishEV); } -BOOL WINAPI SWMRGInitialize(PSWMRG pSWMRG,TCHAR *Name) +BOOL WINAPI SWMRGInitialize(PSWMRG pSWMRG,wchar_t *Name) { pSWMRG->hEventNoWriter=NULL; pSWMRG->hEventNoReaders=NULL; @@ -109,25 +109,25 @@ BOOL WINAPI SWMRGInitialize(PSWMRG pSWMRG,TCHAR *Name) // no writer threads are writing. // Initially no reader threads are reading. if (Name != NULL) - Name[0]=(TCHAR)'W'; + Name[0]=(wchar_t)'W'; pSWMRG->hEventNoWriter=CreateEvent(NULL,FALSE,TRUE,Name); // Creates the manual-reset event that is signalled when // no reader threads are reading. // Initially no reader threads are reading. if (Name != NULL) - Name[0]=(TCHAR)'R'; + Name[0]=(wchar_t)'R'; pSWMRG->hEventNoReaders=CreateEvent(NULL,TRUE,TRUE,Name); // Initializes the variable that indicates the number of // reader threads that are reading. // Initially no reader threads are reading. if (Name != NULL) - Name[0]=(TCHAR)'C'; + Name[0]=(wchar_t)'C'; pSWMRG->hSemNumReaders=CreateSemaphore(NULL,0,0x7FFFFFFF,Name); if (Name != NULL) - Name[0]=(TCHAR)'F'; + Name[0]=(wchar_t)'F'; pSWMRG->hFinishEV=CreateEvent(NULL,TRUE,FALSE,Name); // If a synchronization object could not be created, -- cgit v1.2.3