mirror of
https://github.com/AppleWin/AppleWin.git
synced 2024-06-05 11:29:35 +00:00
Fix for double-clicking an associated filetype
This commit is contained in:
parent
84e0ef4ef8
commit
fcd1b2aa68
|
@ -1368,6 +1368,12 @@ static bool ProcessCmdLine(LPSTR lpCmdLine)
|
|||
const std::string strCmdLine(lpCmdLine); // Keep a copy for log ouput
|
||||
std::string strUnsupported;
|
||||
|
||||
// If 1st param looks like an abs pathname then assume that an associated filetype has been double-clicked
|
||||
// NB. Handled by WM_DDE_INITIATE & WM_DDE_EXECUTE msgs
|
||||
if ((lpCmdLine[0] >= '\"' && lpCmdLine[1] >= 'A' && lpCmdLine[1] <= 'Z' && lpCmdLine[2] == ':') // always in quotes
|
||||
|| strncmp("\\\\?\\", lpCmdLine, 4) == 0)
|
||||
return true;
|
||||
|
||||
while (*lpCmdLine)
|
||||
{
|
||||
LPSTR lpNextArg = GetNextArg(lpCmdLine);
|
||||
|
|
Loading…
Reference in New Issue
Block a user