diff options
author | George Hazan <george.hazan@gmail.com> | 2016-07-26 09:20:25 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2016-07-26 09:20:25 +0000 |
commit | 6e53dfca72b932c4bdcd7aa02ca62bf8b2630eac (patch) | |
tree | 2e8bb660c908b54914abd562af8aafa4a486c846 /plugins/YAMN/src/synchro.cpp | |
parent | a61c8728b379057fe7f0a0d86fe0b037598229dd (diff) |
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
Diffstat (limited to 'plugins/YAMN/src/synchro.cpp')
-rw-r--r-- | plugins/YAMN/src/synchro.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
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,
|