advpack: DelDirs should only remove a directory if it's empty.
This commit is contained in:
parent
8e111502ad
commit
5f875b0912
|
@ -87,7 +87,7 @@ static HRESULT del_dirs_callback(HINF hinf, PCWSTR field, void *arg)
|
||||||
MAX_INF_STRING_LENGTH, &size))
|
MAX_INF_STRING_LENGTH, &size))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (DelNodeW(directory, 0))
|
if (DelNodeW(directory, ADN_DEL_IF_EMPTY))
|
||||||
hr = E_FAIL;
|
hr = E_FAIL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue