* shortcut.c: Change symlink condition.

This commit is contained in:
Corinna Vinschen
2001-02-25 09:19:35 +00:00
parent c350452a41
commit 80ed95f2eb
2 changed files with 7 additions and 2 deletions

View File

@@ -15,6 +15,7 @@ details. */
#include <ctype.h>
#include <sys/types.h>
#include <sys/mount.h>
#include <sys/strace.h>
#include <errno.h>
#include "shortcut.h"
@@ -125,9 +126,9 @@ check_shortcut (const char *path, DWORD fileattr, HANDLE h,
if (FAILED(hres))
goto close_it;
}
/* It's a symlink. */
*pflags = PATH_SYMLINK;
res = strlen (contents);
if (res) /* It's a symlink. */
*pflags = PATH_SYMLINK;
close_it:
/* Release the pointer to IPersistFile. */