NULL, // no secutity attr
OPEN_EXISTING, // creation disposition
0, // no flags
NULL, // no secutity attr
OPEN_EXISTING, // creation disposition
0, // no flags
bool wxFileName::GetShortcutTarget(const wxString& shortcutPath, wxString& targetFilename, wxString* arguments)
{
bool wxFileName::GetShortcutTarget(const wxString& shortcutPath, wxString& targetFilename, wxString* arguments)
{
wxString path, file, ext;
wxSplitPath(shortcutPath, & path, & file, & ext);
wxString path, file, ext;
wxSplitPath(shortcutPath, & path, & file, & ext);
- fn1.Normalize(wxPATH_NORM_ALL & ~wxPATH_NORM_CASE, cwd, format);
- fn2.Normalize(wxPATH_NORM_ALL & ~wxPATH_NORM_CASE, cwd, format);
+ fn1.Normalize(wxPATH_NORM_ALL | wxPATH_NORM_CASE, cwd, format);
+ fn2.Normalize(wxPATH_NORM_ALL | wxPATH_NORM_CASE, cwd, format);
size_t posLastDot = fullpath.find_last_of(wxFILE_SEP_EXT);
size_t posLastSlash = fullpath.find_last_of(sepPath);
size_t posLastDot = fullpath.find_last_of(wxFILE_SEP_EXT);
size_t posLastSlash = fullpath.find_last_of(sepPath);
- ((format == wxPATH_UNIX) || (format == wxPATH_VMS)) )
- {
- if ( (posLastDot == 0) ||
- (fullpath[posLastDot - 1] == sepPath[0u] ) )
+ (posLastDot == 0 ||
+ IsPathSeparator(fullpath[posLastDot - 1]) ||
+ (format == wxPATH_VMS && fullpath[posLastDot - 1] == _T(']'))) )
// character of the filename, don't treat the entire filename as
// extension in this case
posLastDot = wxString::npos;
}
// character of the filename, don't treat the entire filename as
// extension in this case
posLastDot = wxString::npos;
}
// if we do have a dot and a slash, check that the dot is in the name part
if ( (posLastDot != wxString::npos) &&
// if we do have a dot and a slash, check that the dot is in the name part
if ( (posLastDot != wxString::npos) &&