Autosyncing with Wine HEAD

svn path=/trunk/; revision=27897
This commit is contained in:
The Wine Synchronizer 2007-07-27 09:03:12 +00:00
parent 1cda0af518
commit 933a0dc886
2 changed files with 2 additions and 8 deletions

View file

@ -331,7 +331,6 @@ static HRESULT DELNODE_recurse_dirtree(LPWSTR fname, DWORD flags)
DWORD fattrs = GetFileAttributesW(fname);
HRESULT ret = E_FAIL;
static const WCHAR backslash[] = {'\\',0};
static const WCHAR asterisk[] = {'*',0};
static const WCHAR dot[] = {'.',0};
static const WCHAR dotdot[] = {'.','.',0};
@ -344,11 +343,7 @@ static HRESULT DELNODE_recurse_dirtree(LPWSTR fname, DWORD flags)
int fname_len = lstrlenW(fname);
/* Generate a path with wildcard suitable for iterating */
if (lstrcmpW(CharPrevW(fname, fname + fname_len), backslash))
{
lstrcpyW(fname + fname_len, backslash);
++fname_len;
}
if (fname_len && fname[fname_len-1] != '\\') fname[fname_len++] = '\\';
lstrcpyW(fname + fname_len, asterisk);
if ((hFindFile = FindFirstFileW(fname, &w32fd)) != INVALID_HANDLE_VALUE)

View file

@ -512,8 +512,7 @@ static HRESULT install_init(LPCWSTR inf_filename, LPCWSTR install_sec,
/* release the install instance information */
static void install_release(const ADVInfo *info)
{
if (info->hinf && info->hinf != INVALID_HANDLE_VALUE)
SetupCloseInfFile(info->hinf);
SetupCloseInfFile(info->hinf);
HeapFree(GetProcessHeap(), 0, info->inf_path);
HeapFree(GetProcessHeap(), 0, info->inf_filename);