Changeset 2302
- Timestamp:
- 2001-04-10T15:19:31+12:00 (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/lib/fileutil.cpp
r1864 r2302 156 156 WIN32_FIND_DATA FileData; 157 157 HANDLE hSearch; 158 char *dirpath = dirname.getcstr(); 159 strcat (dirpath, "\\*"); 158 159 text_t dir = dirname + "\\*"; 160 char *dirpath = dir.getcstr(); 160 161 161 162 hSearch = FindFirstFile(dirpath, &FileData); … … 166 167 167 168 FindClose (hSearch); 168 // freeing this memory can cause a runtime error on some (particularly169 // debug) versions of VC++170 169 delete dirpath; 171 170 return true; … … 176 175 WIN32_FIND_DATA FileData; 177 176 HANDLE hSearch; 178 char *dirpath = dirname.getcstr(); 179 strcat (dirpath, "\\*"); 177 178 text_t dir = dirname + "\\*"; 179 char *dirpath = dir.getcstr(); 180 180 181 181 hSearch = FindFirstFile(dirpath, &FileData); … … 197 197 198 198 FindClose(hSearch); 199 // freeing this memory can cause a runtime error on some (particularly200 // debug) versions of VC++201 199 delete dirpath; 202 200 … … 208 206 WIN32_FIND_DATA FileData; 209 207 HANDLE hSearch; 210 char *dirpath = dirname.getcstr(); 211 strcat (dirpath, "\\*"); 208 209 text_t dir = dirname + "\\*"; 210 char *dirpath = dir.getcstr(); 212 211 213 212 hSearch = FindFirstFile(dirpath, &FileData); … … 229 228 230 229 FindClose(hSearch); 231 // freeing this memory can cause a runtime error on some (particularly232 // debug) versions of VC++233 230 delete dirpath; 234 231
Note:
See TracChangeset
for help on using the changeset viewer.