/[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 128 by twoaday, Mon Dec 19 13:05:59 2005 UTC revision 129 by twoaday, Fri Dec 30 13:56:10 2005 UTC
# Line 36  Line 36 
36    
37  #define rc_ok(rc) ((rc) == ERROR_SUCCESS)  #define rc_ok(rc) ((rc) == ERROR_SUCCESS)
38    
 static gpg_filetype gpg_filetypes[] = {  
     {"GPG Detached Signature", ".sig", 1},  
     {"GPG Encrypted Data",     ".gpg", 2},  
     {"GPG Armored Data",       ".asc", 2},  
     {0}  
 };  
39    
40    
41  struct reg_hotkey_s reg_hotkeys[] = {  struct reg_hotkey_s reg_hotkeys[] = {
# Line 161  regist_inst_gnupg (int create_mokey) Line 155  regist_inst_gnupg (int create_mokey)
155     Return value: 0 on success. */     Return value: 0 on success. */
156  int  int
157  regist_inst_winpt (int with_ext, int *created)  regist_inst_winpt (int with_ext, int *created)
158  {  {    
159      HKEY reg;      HKEY reg;
160      char *p = NULL;      char *p = NULL;
161      char modpath[MAX_PATH+1];      char modpath[MAX_PATH+1];
162      int rc, i, id, n = 0;      int rc, i, id, n = 0;
163    
164        gpg_filetype gpg_filetypes[] = {
165            {_("GPG Detached Signature"), ".sig", 1},
166            {_("GPG Encrypted Data"),     ".gpg", 2},
167            {_("GPG Armored Data"),       ".asc", 2},
168            {0}
169        };
170    
171      if (created)      if (created)
172          *created = 0;          *created = 0;
173    
# Line 225  start: Line 226  start:
226      if (created)      if (created)
227          *created = 1;          *created = 1;
228      RegCloseKey (reg);      RegCloseKey (reg);
229      if (n)      if (n > 0 || is_gpgee_installed ())
230          set_reg_entry (HKEY_CURRENT_USER, WINPT_REG, "Extensions", "1");          set_reg_entry (HKEY_CURRENT_USER, WINPT_REG, "Extensions", "1");
231      if ((n=GetModuleFileName (NULL, modpath, MAX_PATH-1)) > 0) {      if ((n=GetModuleFileName (NULL, modpath, MAX_PATH-1)) > 0) {
232          while (n-- > 0) {          while (n-- > 0) {

Legend:
Removed from v.128  
changed lines
  Added in v.129

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26