[Coverity] Fix some possible NULL-pointer dereferences

This commit is contained in:
baldurk
2016-05-01 14:40:02 +02:00
parent 40fef75750
commit faa385647d
2 changed files with 7 additions and 4 deletions
+1 -1
View File
@@ -352,7 +352,7 @@ int WINAPI wWinMain(_In_ HINSTANCE hInst,
fn = strchr(fn, '/');
if(fn) fn++;
if(*fn)
if(fn && *fn)
{
wchar_t conv[MAX_PATH] = {0};
wchar_t *wfn = conv;