[appwiz] Allow passing directories to the create new shortcut wizard

See issue #6169 for more details.

svn path=/trunk/; revision=51822
This commit is contained in:
Gregor Schneider 2011-05-19 18:04:10 +00:00
parent 53bec9d2e8
commit ba4214e8d5

View file

@ -340,7 +340,7 @@ ShowCreateShortcutWizard(HWND hwndCPl, LPWSTR szPath)
}
attrs = GetFileAttributesW(szPath);
if (attrs == INVALID_FILE_ATTRIBUTES || (attrs & FILE_ATTRIBUTE_DIRECTORY))
if (attrs == INVALID_FILE_ATTRIBUTES)
{
/* invalid path */
return FALSE;