[11522] Replace code expression (!a > 0) to safe version.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
jethro84530 2011-05-22 01:59:48 +04:00 committed by VladimirMangos
parent 5876afb0a4
commit ae2a9e1c6a
2 changed files with 2 additions and 2 deletions

View file

@ -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.");

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "11521"
#define REVISION_NR "11522"
#endif // __REVISION_NR_H__