This repository was archived by the owner on May 19, 2021. It is now read-only.
File tree 1 file changed +10
-2
lines changed
1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -307,7 +307,14 @@ void UpdateRecentProjectsList()
307
307
{
308
308
RegistryKey key = hklm . OpenSubKey ( registryPathsToCheck [ i ] ) ;
309
309
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
+ }
311
318
312
319
// parse recent project path
313
320
foreach ( var valueName in key . GetValueNames ( ) )
@@ -320,7 +327,7 @@ void UpdateRecentProjectsList()
320
327
if ( valueKind == RegistryValueKind . Binary )
321
328
{
322
329
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 ) ;
324
331
}
325
332
else // should be string then
326
333
{
@@ -330,6 +337,7 @@ void UpdateRecentProjectsList()
330
337
// first check if whole folder exists, if not, skip
331
338
if ( Directory . Exists ( projectPath ) == false )
332
339
{
340
+ Console . WriteLine ( "Recent project directory not found, skipping: " + projectPath ) ;
333
341
continue ;
334
342
}
335
343
You can’t perform that action at this time.
0 commit comments