mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 17:44:45 +00:00
Allow the lpTemplateDirectory parameter to be NULL in CreateDirectoryExA.
svn path=/trunk/; revision=14219
This commit is contained in:
parent
439e6fd789
commit
2d8afa8978
1 changed files with 4 additions and 3 deletions
|
@ -50,11 +50,12 @@ CreateDirectoryExA (
|
|||
LPCSTR lpNewDirectory,
|
||||
LPSECURITY_ATTRIBUTES lpSecurityAttributes)
|
||||
{
|
||||
PWCHAR TemplateDirectoryW;
|
||||
PWCHAR NewDirectoryW;
|
||||
PWCHAR TemplateDirectoryW = NULL;
|
||||
PWCHAR NewDirectoryW = NULL;
|
||||
BOOL ret;
|
||||
|
||||
if (!(TemplateDirectoryW = FilenameA2W(lpTemplateDirectory, FALSE)))
|
||||
if (TemplateDirectoryW != NULL &&
|
||||
!(TemplateDirectoryW = FilenameA2W(lpTemplateDirectory, FALSE)))
|
||||
return FALSE;
|
||||
|
||||
if (!(NewDirectoryW = FilenameA2W(lpNewDirectory, TRUE)))
|
||||
|
|
Loading…
Reference in a new issue