winbuild: fix const_cast<char*> issue
This commit is contained in:
parent
0eeb73846b
commit
3cef471e4b
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue