From ae2a9e1c6acdfffb77f224845d30664a7ae6772f Mon Sep 17 00:00:00 2001 From: jethro84530 Date: Sun, 22 May 2011 01:59:48 +0400 Subject: [PATCH] [11522] Replace code expression (!a > 0) to safe version. Signed-off-by: VladimirMangos --- src/shared/ServiceWin32.cpp | 2 +- src/shared/revision_nr.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/shared/ServiceWin32.cpp b/src/shared/ServiceWin32.cpp index 62e2c0e45..0c2f8db67 100644 --- a/src/shared/ServiceWin32.cpp +++ b/src/shared/ServiceWin32.cpp @@ -58,7 +58,7 @@ bool WinServiceInstall() } char path[_MAX_PATH + 10]; - if (!GetModuleFileName( 0, path, sizeof(path)/sizeof(path[0]) ) > 0) + if (!GetModuleFileName( 0, path, sizeof(path)/sizeof(path[0]))) { CloseServiceHandle(serviceControlManager); sLog.outError("SERVICE: Can't get service binary filename."); diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index b829839c1..e182c9071 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "11521" + #define REVISION_NR "11522" #endif // __REVISION_NR_H__