/[winpt]/trunk/Src/wptRegistry.cpp
ViewVC logotype

Diff of /trunk/Src/wptRegistry.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2 by twoaday, Mon Jan 31 11:02:21 2005 UTC revision 6 by twoaday, Mon Apr 4 06:59:24 2005 UTC
# Line 54  free_reg_prefs (void) Line 54  free_reg_prefs (void)
54  {  {
55      free_if_alloc (reg_prefs.backup.path);      free_if_alloc (reg_prefs.backup.path);
56      free_if_alloc (reg_prefs.kserv_conf);      free_if_alloc (reg_prefs.kserv_conf);
57        free_if_alloc (reg_prefs.homedir);
58      memset (&reg_prefs, 0, sizeof reg_prefs);      memset (&reg_prefs, 0, sizeof reg_prefs);
59  } /* free_reg_prefs */  } /* free_reg_prefs */
60    
# Line 78  regist_single_filetype (gpg_filetype *gf Line 79  regist_single_filetype (gpg_filetype *gf
79   * exists< the function returns immediately.   * exists< the function returns immediately.
80   */   */
81  int  int
82  regist_inst_gnupg( int create_mokey )  regist_inst_gnupg (int create_mokey)
83  {  {
84      int rc;      int rc;
85      HKEY reg;      HKEY reg;
# Line 113  regist_inst_gnupg( int create_mokey ) Line 114  regist_inst_gnupg( int create_mokey )
114   * exists the function returns immediately.   * exists the function returns immediately.
115   */   */
116  int  int
117  regist_inst_winpt( int with_ext, int * created )  regist_inst_winpt (int with_ext, int * created)
118  {  {
119      HKEY reg;      HKEY reg;
120      char * p = NULL;      char * p = NULL;
# Line 122  regist_inst_winpt( int with_ext, int * c Line 123  regist_inst_winpt( int with_ext, int * c
123      if( created )      if( created )
124          *created = 0;          *created = 0;
125    
126      p = get_reg_entry( HKEY_CURRENT_USER, WINPT_REG, "Extensions" );      p = get_reg_entry (HKEY_CURRENT_USER, WINPT_REG, "Extensions");
127      if( p && *p == '1' )      if (p && *p == '1')
128          with_ext = 0;          with_ext = 0;
129      free_if_alloc( p );      free_if_alloc( p );
130    
# Line 387  static const char * cfg [] = { Line 388  static const char * cfg [] = {
388          "DisableHotkeys",                "DisableHotkeys",      
389          "NoCompressMultiMedia",          "NoCompressMultiMedia",
390          "Expert",          "Expert",
391            "FMProgressBar",
392      };      };
393    
394    
# Line 462  set_reg_winpt_prefs (winpt_reg_prefs_s * Line 464  set_reg_winpt_prefs (winpt_reg_prefs_s *
464          case CFG_EXPERT:          case CFG_EXPERT:
465              sprintf (buf, "%d", opt->expert);              sprintf (buf, "%d", opt->expert);
466              break;              break;
467    
468            case CFG_FM_PROGRESS:
469                sprintf (buf, "%d", opt->fm.progress);
470                break;
471          }          }
472          rc = set_reg_entry (HKEY_CURRENT_USER, WINPT_REG, cfg[i], buf);          rc = set_reg_entry (HKEY_CURRENT_USER, WINPT_REG, cfg[i], buf);
473          if (rc)          if (rc)
# Line 577  get_reg_winpt_prefs (winpt_reg_prefs_s * Line 583  get_reg_winpt_prefs (winpt_reg_prefs_s *
583          case CFG_EXPERT:          case CFG_EXPERT:
584              opt->expert = atol (val);              opt->expert = atol (val);
585              break;              break;
586    
587            case CFG_FM_PROGRESS:
588                opt->fm.progress = atol (val);
589                break;
590          }          }
591          free_if_alloc (val);          free_if_alloc (val);
592      }          }    

Legend:
Removed from v.2  
changed lines
  Added in v.6

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26