This repository was archived by the owner on May 19, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -307,7 +307,14 @@ void UpdateRecentProjectsList()
307307 {
308308 RegistryKey key = hklm . OpenSubKey ( registryPathsToCheck [ i ] ) ;
309309
310- if ( key == null ) continue ;
310+ if ( key == null )
311+ {
312+ continue ;
313+ }
314+ else
315+ {
316+ Console . WriteLine ( "Null registry key at " + registryPathsToCheck [ i ] ) ;
317+ }
311318
312319 // parse recent project path
313320 foreach ( var valueName in key . GetValueNames ( ) )
@@ -320,7 +327,7 @@ void UpdateRecentProjectsList()
320327 if ( valueKind == RegistryValueKind . Binary )
321328 {
322329 byte [ ] projectPathBytes = ( byte [ ] ) key . GetValue ( valueName ) ;
323- projectPath = Encoding . Default . GetString ( projectPathBytes , 0 , projectPathBytes . Length - 1 ) ;
330+ projectPath = Encoding . UTF8 . GetString ( projectPathBytes , 0 , projectPathBytes . Length - 1 ) ;
324331 }
325332 else // should be string then
326333 {
@@ -330,6 +337,7 @@ void UpdateRecentProjectsList()
330337 // first check if whole folder exists, if not, skip
331338 if ( Directory . Exists ( projectPath ) == false )
332339 {
340+ Console . WriteLine ( "Recent project directory not found, skipping: " + projectPath ) ;
333341 continue ;
334342 }
335343
You can’t perform that action at this time.
0 commit comments