[Common] Fix CPath::SetComponents for non win32 system

This commit is contained in:
zilmar 2016-08-09 20:19:43 +10:00
parent 848502e088
commit 7eccf17c90
1 changed files with 1 additions and 1 deletions

View File

@ -612,7 +612,7 @@ void CPath::SetComponents(const char * lpszDirectory, const char * lpszName, con
{
strncat(buff_fullname,lpszName,sizeof(buff_fullname));
}
if (lpszExtension != NULL)
if (lpszExtension != NULL && lpszExtension[0] != '\0')
{
if (lpszExtension[0] != '.')
{