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

Diff of /trunk/Src/wptW32API.cpp

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

revision 21 by twoaday, Mon Apr 4 06:59:24 2005 UTC revision 22 by twoaday, Wed Aug 10 11:33:35 2005 UTC
# Line 33  Line 33 
33  #include "wptTypes.h"  #include "wptTypes.h"
34    
35    
36    extern "C" void _SHFree (void *p);
37    
38  /*  /*
39   * The the text of a menu item.   * The the text of a menu item.
40   */   */
# Line 122  get_folder_dlg (HWND hwnd, const char * Line 124  get_folder_dlg (HWND hwnd, const char *
124      il = SHBrowseForFolder (&bi);      il = SHBrowseForFolder (&bi);
125      if (il) {      if (il) {
126          SHGetPathFromIDList (il, folder);          SHGetPathFromIDList (il, folder);
127            _SHFree (il);
128          return folder;          return folder;
129      }      }
130      return NULL;      return NULL;
# Line 383  window_reminder( struct reminder_ctx_s * Line 386  window_reminder( struct reminder_ctx_s *
386    
387    
388  char *  char *
389  m_strdup( const char *str )  m_strdup (const char *str)
390  {  {
391      char * p = new char[strlen( str ) + 1];      char * p = new char[strlen (str) + 1];
392      if( p )      if (p)
393          strcpy( p, str );          strcpy (p, str);
394      return p;      return p;
395  } /* m_strdup */  } /* m_strdup */
396    

Legend:
Removed from v.21  
changed lines
  Added in v.22

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26