drive: Fix possible NULL ptr access

This commit is contained in:
Martin Fleisz 2018-03-06 16:34:36 +01:00
parent 900aa94796
commit 9b4de7903f
1 changed files with 1 additions and 1 deletions

View File

@ -788,7 +788,7 @@ static void* drive_thread_func(void* arg)
}
fail:
if (error && drive->rdpcontext)
if (error && drive && drive->rdpcontext)
setChannelError(drive->rdpcontext, error, "drive_thread_func reported an error");
ExitThread((DWORD)error);