Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in tip

fogcreek shellext: properly handle paths with spaces in them

Changeset c1a754986c3b

Parent 339764f94377

by David Golub

Changes to one file · Browse files at c1a754986c3b Showing diff from parent 339764f94377 Diff from another changeset...

 
18
19
20
 
21
22
23
 
142
143
144
 
 
 
 
 
145
146
147
 
18
19
20
21
22
23
24
 
143
144
145
146
147
148
149
150
151
152
153
@@ -18,6 +18,7 @@
   #include "TortoiseHgKeyboard.h"  #include "TortoiseUtils.h" +#include "StringUtils.h"  #include "RunDialog.h"  #include "GlobalData.h"   @@ -142,6 +143,11 @@
  strFolder = bstrURL;   ::SysFreeString(bstrURL);   + // Unescape the URL. + LPTSTR lpszFolder = strFolder.LockBuffer(); + ::UrlUnescape(lpszFolder, NULL, NULL, URL_UNESCAPE_INPLACE); + strFolder.UnlockBuffer(); +   // Check if it's a file URL and extract the path.   if (StartsWith(strFolder, FILE_PREFIX))   {