diff options
author | George Hazan <george.hazan@gmail.com> | 2014-01-23 20:05:16 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-01-23 20:05:16 +0000 |
commit | 77ece3939612fb0133d20815883e4ed50a10230e (patch) | |
tree | 39ebd782bf53759e42c97b616559e88932d8137d /plugins/Clist_modern/src/modern_utils.cpp | |
parent | bddc04b139e8dfb3ecfb37af1fbf32965b15c577 (diff) |
fixes bug #188 completely
git-svn-id: http://svn.miranda-ng.org/main/trunk@7842 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Clist_modern/src/modern_utils.cpp')
-rw-r--r-- | plugins/Clist_modern/src/modern_utils.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/Clist_modern/src/modern_utils.cpp b/plugins/Clist_modern/src/modern_utils.cpp index b843b28368..ff5825e67e 100644 --- a/plugins/Clist_modern/src/modern_utils.cpp +++ b/plugins/Clist_modern/src/modern_utils.cpp @@ -5,7 +5,7 @@ BYTE gl_TrimText = 1; char * __cdecl strstri( char *a, const char *b)
{
char * x, *y;
- if ( !a || !b) return FALSE;
+ if (!a || !b) return FALSE;
x = _strdup(a);
y = _strdup(b);
x = _strupr(x);
@@ -56,7 +56,7 @@ BOOL __cdecl mir_bool_tstrcmpi(const TCHAR *a, const TCHAR *b) int __cdecl mir_strcmp (const char *a, const char *b)
{
- if ( !(a && b)) return a != b;
+ if (!(a && b)) return a != b;
return (strcmp(a,b));
};
@@ -75,7 +75,7 @@ char * strdupn(const char * src, int len) char * p;
if (src == NULL) return NULL;
p = (char*)malloc(len+1);
- if ( !p) return 0;
+ if (!p) return 0;
memcpy(p,src,len);
p[len] = '\0';
return p;
@@ -102,7 +102,7 @@ void TRACE_ERROR() {
DWORD t = GetLastError();
LPVOID lpMsgBuf;
- if ( !FormatMessage(
+ if (!FormatMessage(
FORMAT_MESSAGE_ALLOCATE_BUFFER |
FORMAT_MESSAGE_FROM_SYSTEM |
FORMAT_MESSAGE_IGNORE_INSERTS,
@@ -126,7 +126,7 @@ void TRACE_ERROR() BOOL DebugDeleteObject(HGDIOBJ a)
{
BOOL res = DeleteObject(a);
- if ( !res) TRACE_ERROR();
+ if (!res) TRACE_ERROR();
return res;
}
|