[ADVPACK] files.c: Properly mark Wine diff

Addendum to 6eb8a1d (0.4.15-dev-6918).
This commit is contained in:
Serge Gautherie 2022-10-13 19:56:10 +02:00 committed by Stanislav Motylkov
parent 49e07292ed
commit 7661f7826c

View File

@ -341,17 +341,13 @@ static HRESULT DELNODE_recurse_dirtree(LPWSTR fname, DWORD flags)
HANDLE hFindFile;
WIN32_FIND_DATAW w32fd;
BOOL done = TRUE;
int fname_len;
int fname_len = lstrlenW(fname);
#ifdef __REACTOS__
if (flags & ADN_DEL_IF_EMPTY)
{
goto deleteinitialdirectory;
}
#endif
/* Generate a path with wildcard suitable for iterating */
fname_len = lstrlenW(fname);
if (fname_len && fname[fname_len-1] != '\\') fname[fname_len++] = '\\';
lstrcpyW(fname + fname_len, asterisk);
@ -381,7 +377,9 @@ static HRESULT DELNODE_recurse_dirtree(LPWSTR fname, DWORD flags)
{
#ifdef __REACTOS__
deleteinitialdirectory:
#endif
TRACE("%s: directory\n", debugstr_w(fname));
#ifdef __REACTOS__
SetFileAttributesW(fname, FILE_ATTRIBUTE_NORMAL);
if (RemoveDirectoryW(fname))
#else
@ -454,7 +452,7 @@ HRESULT WINAPI DelNodeW(LPCWSTR pszFileOrDirName, DWORD dwFlags)
HRESULT ret = E_FAIL;
TRACE("(%s, %d)\n", debugstr_w(pszFileOrDirName), dwFlags);
#ifdef __REACTOS__
if (dwFlags & ~ADN_DEL_IF_EMPTY)
FIXME("Flags %#x ignored!\n", dwFlags & ~ADN_DEL_IF_EMPTY);