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

Diff of /trunk/Src/wptKeyPropsDlg.cpp

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

revision 129 by twoaday, Fri Dec 30 13:56:10 2005 UTC revision 133 by twoaday, Mon Jan 9 09:15:29 2006 UTC
# Line 112  keyprops_load_photo (HWND dlg, gpgme_key Line 112  keyprops_load_photo (HWND dlg, gpgme_key
112          draw_nophoto_img (dlg);          draw_nophoto_img (dlg);
113          return -1;          return -1;
114      }      }
115    
116      f = fopen (get_photo_tmpname (dlg), "wb");      f = fopen (get_photo_tmpname (dlg), "wb");
117      if (f) {      if (f) {
118          for (pos = 0; img[pos] != 0x10; pos++)          //for (pos = 0; img[pos] != 0x10; pos++)
119                  ;          //      ;
120          pos += 16;          pos += 16;
121          fwrite (img + pos, 1, imglen - pos, f);          fwrite (img + pos, 1, imglen - pos, f);
         fwrite (img, 1, imglen, f);  
122          fclose (f);          fclose (f);
123      }      }
124      return 0;      return 0;

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26