mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 01:37:00 +00:00
[11522] Replace code expression (!a > 0) to safe version.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
parent
5876afb0a4
commit
ae2a9e1c6a
2 changed files with 2 additions and 2 deletions
|
|
@ -58,7 +58,7 @@ bool WinServiceInstall()
|
||||||
}
|
}
|
||||||
|
|
||||||
char path[_MAX_PATH + 10];
|
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);
|
CloseServiceHandle(serviceControlManager);
|
||||||
sLog.outError("SERVICE: Can't get service binary filename.");
|
sLog.outError("SERVICE: Can't get service binary filename.");
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "11521"
|
#define REVISION_NR "11522"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue