winbuild: fix const_cast<char*> issue

This commit is contained in:
Christophe Chevalier 2021-01-30 15:12:53 +01:00
parent 0eeb73846b
commit 3cef471e4b
1 changed files with 1 additions and 1 deletions

View File

@ -118,7 +118,7 @@ CServiceBase::CServiceBase(char *serviceName,
bool fCanPauseContinue)
{
// Service name must be a valid string and cannot be NULL.
m_name = (serviceName == NULL) ? "" : serviceName;
m_name = (serviceName == NULL) ? const_cast<char*>("") : serviceName;
m_statusHandle = NULL;