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 (®_prefs, 0, sizeof reg_prefs); |
memset (®_prefs, 0, sizeof reg_prefs); |
59 |
} /* free_reg_prefs */ |
} /* free_reg_prefs */ |
60 |
|
|
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; |
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; |
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 |
|
|