Changeset 1011 for trunk/eas.c
- Timestamp:
- May 11, 2008, 5:00:39 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/eas.c
r1010 r1011 27 27 #include "dll\fm3dll.h" 28 28 29 static PSZ pszSrcFile = __FILE__; 30 29 31 int main (int argc,char *argv[]) 30 32 { … … 52 54 if (!list) { 53 55 strcpy(fullname, "*"); 54 list = malloc(sizeof(CHAR *) * 2);56 list = xmalloc(sizeof(CHAR *) * 2, pszSrcFile, __LINE__); 55 57 if (list && 56 58 insert_filename(HWND_DESKTOP,fullname,TRUE,FALSE) && 57 59 *fullname && *fullname != '*') { 58 59 60 list[0] = fullname; 61 list[1] = NULL; 60 62 } 61 63 } … … 74 76 } 75 77 if (list) 76 free(list);78 xfree(list, pszSrcFile, __LINE__); 77 79 return 0; 78 80 }
Note:
See TracChangeset
for help on using the changeset viewer.