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

Diff of /trunk/Src/wptMDSumDlg.cpp

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

revision 23 by twoaday, Fri Sep 30 10:10:16 2005 UTC revision 32 by twoaday, Mon Oct 24 08:03:48 2005 UTC
# Line 32  Line 32 
32  #include "wptErrors.h"  #include "wptErrors.h"
33    
34    
35  static const char *  /* Return a printable digest of the buffer @mdbuf. */
36  printable_digest( byte *mdbuf, size_t n )  static const char*
37    printable_digest (byte *mdbuf, size_t n)
38  {  {
39      static char mdasc[64];      static char mdasc[64];
40      size_t i;      size_t i;
41      for( i = 0; i < n; i++ )      for (i = 0; i < n; i++)
42          sprintf( mdasc+2*i, "%02X", mdbuf[i] );          sprintf (mdasc+2*i, "%02X", mdbuf[i]);
43      return mdasc;      return mdasc;
44  } /* printable_digest */  }
45    
46    
47    /* Dialog box procedure to show and calculate file digests. */
48  BOOL CALLBACK  BOOL CALLBACK
49  mdsum_dlg_proc (HWND dlg, UINT msg, WPARAM wparam, LPARAM lparam)  mdsum_dlg_proc (HWND dlg, UINT msg, WPARAM wparam, LPARAM lparam)
50  {  {
# Line 123  mdsum_dlg_proc (HWND dlg, UINT msg, WPAR Line 125  mdsum_dlg_proc (HWND dlg, UINT msg, WPAR
125          break;          break;
126      }      }
127      return FALSE;      return FALSE;
128  } /* mdsum_dlg_proc */  }

Legend:
Removed from v.23  
changed lines
  Added in v.32

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26