mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +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,
|
LPCSTR lpNewDirectory,
|
||||||
LPSECURITY_ATTRIBUTES lpSecurityAttributes)
|
LPSECURITY_ATTRIBUTES lpSecurityAttributes)
|
||||||
{
|
{
|
||||||
PWCHAR TemplateDirectoryW;
|
PWCHAR TemplateDirectoryW = NULL;
|
||||||
PWCHAR NewDirectoryW;
|
PWCHAR NewDirectoryW = NULL;
|
||||||
BOOL ret;
|
BOOL ret;
|
||||||
|
|
||||||
if (!(TemplateDirectoryW = FilenameA2W(lpTemplateDirectory, FALSE)))
|
if (TemplateDirectoryW != NULL &&
|
||||||
|
!(TemplateDirectoryW = FilenameA2W(lpTemplateDirectory, FALSE)))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
if (!(NewDirectoryW = FilenameA2W(lpNewDirectory, TRUE)))
|
if (!(NewDirectoryW = FilenameA2W(lpNewDirectory, TRUE)))
|
||||||
|
|
Loading…
Reference in a new issue