Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.8.1, 0.8.2, and 0.8.3

shellext: TRACE tweaks in GetCommandString

Changeset 2fc596e128ab

Parent 82b700937130

by Adrian Buehlmann

Changes to one file · Browse files at 2fc596e128ab Showing diff from parent 82b700937130 Diff from another changeset...

 
453
454
455
456
457
458
459
460
461
462
463
464
465
 
 
 
 
 
466
467
468
469
470
471
 
 
472
473
474
 
 
475
 
476
477
478
 
453
454
455
 
 
 
 
 
456
457
458
459
 
460
461
462
463
464
465
466
467
468
469
 
470
471
472
473
474
475
476
477
478
479
480
481
@@ -453,26 +453,29 @@
 {   const char *psz = "";   - TDEBUG_TRACE( - "CShellExt::GetCommandString: idCmd = " << idCmd - << ", uFlags = " << uFlags - ); -   MenuIdCmdMap::iterator iter = MenuIdMap.find(static_cast<UINT>(idCmd));   if (iter != MenuIdMap.end())   {   TDEBUG_TRACE( - "CShellExt::GetCommandString: name = " << iter->second.name); + "CShellExt::GetCommandString: idCmd = " << idCmd + << ", uFlags = " << uFlags + << ", name = " << iter->second.name + << ", helpText = " << iter->second.helpText + );   psz = iter->second.helpText.c_str();   }   else   {   TDEBUG_TRACE( - "CShellExt::GetCommandString: can't find idCmd " << idCmd); + "CShellExt::GetCommandString: idCmd = " << idCmd + << ", uFlags = " << uFlags << " -> not found");   }     if (cchMax < 1) + { + TDEBUG_TRACE("CShellExt::GetCommandString: cchMax = " << cchMax);   return NOERROR; + }     size_t size = 0;