[Sync] Project sync

This commit is contained in:
Antz 2014-10-11 08:28:58 +01:00 committed by Antz
parent f1c9e0f94b
commit 86690df496
22 changed files with 1731 additions and 385 deletions

View file

@ -16,7 +16,10 @@
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* World of Warcraft, and all World of Warcraft or Warcraft art, images,
* and lore are copyrighted by Blizzard Entertainment, Inc.
*/
#ifdef WIN32
@ -27,6 +30,11 @@
#include <windows.h>
#include <winsvc.h>
// stupid ACE define
#ifdef main
#undef main
#endif
#if !defined(WINADVAPI)
#if !defined(_ADVAPI32_)
#define WINADVAPI DECLSPEC_IMPORT
@ -159,7 +167,7 @@ bool WinServiceUninstall()
if (QueryServiceStatus(service, &serviceStatus2))
{
if (serviceStatus2.dwCurrentState == SERVICE_STOPPED)
DeleteService(service);
{ DeleteService(service); }
}
CloseServiceHandle(service);
@ -197,10 +205,10 @@ void WINAPI ServiceControlHandler(DWORD controlCode)
default:
if (controlCode >= 128 && controlCode <= 255)
// user defined control code
break;
{ break; }
else
// unrecognized control code
break;
{ break; }
}
SetServiceStatus(serviceStatusHandle, &serviceStatus);
@ -228,7 +236,7 @@ void WINAPI ServiceMain(DWORD argc, char* argv[])
for (i = 0; i < std::strlen(path); ++i)
{
if (path[i] == '\\') last_slash = i;
if (path[i] == '\\') { last_slash = i; }
}
path[last_slash] = 0;