mirror of
https://github.com/reactos/reactos.git
synced 2024-11-23 11:33:31 +08:00
[SETUPAPI] Fix absolute dirid ProfileItems bug (#7016)
This commit is contained in:
parent
13b6972500
commit
4321c975c7
@ -844,8 +844,10 @@ static BOOL Concatenate(int DirId, LPCWSTR SubDirPart, LPCWSTR NamePart, LPWSTR
|
||||
*pFullName = NULL;
|
||||
|
||||
Dir = DIRID_get_string(DirId);
|
||||
if (Dir)
|
||||
if (Dir && *Dir)
|
||||
dwRequired += wcslen(Dir) + 1;
|
||||
else
|
||||
Dir = NULL; /* DIRID_get_string returns L"" for DIRID_ABSOLUTE */
|
||||
if (SubDirPart)
|
||||
dwRequired += wcslen(SubDirPart) + 1;
|
||||
if (NamePart)
|
||||
|
Loading…
Reference in New Issue
Block a user