mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
Handle NULL FilePart
svn path=/trunk/; revision=6925
This commit is contained in:
parent
59ca8af658
commit
a58f6413da
1 changed files with 5 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
|||
/* $Id: dir.c,v 1.39 2003/10/19 19:51:48 navaraf Exp $
|
||||
/* $Id: dir.c,v 1.40 2003/12/09 10:38:05 gvg Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS system libraries
|
||||
|
@ -572,7 +572,10 @@ SearchPathA (
|
|||
0,
|
||||
BufferU.Buffer);
|
||||
|
||||
if (NULL != lpFilePart)
|
||||
{
|
||||
*lpFilePart = strrchr (lpBuffer, '\\') + 1;
|
||||
}
|
||||
|
||||
return RetValue;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue