git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/trunk@284
8a3a26a2-13c4-0310-b231-
cf6edde360e5
FindFiles::~FindFiles() {
if ( findHandle != NULL ) {
closedir( findHandle );
+ findHandle = NULL;
}
}
}
FindFiles::~FindFiles() {
- if ( findHandle != NULL ) {
+ if ( findHandle != INVALID_HANDLE_VALUE ) {
FindClose( findHandle );
+ findHandle = INVALID_HANDLE_VALUE;
}
}
}
if ( FindNextFile( findHandle, &findFileData ) == 0 ) {
FindClose( findHandle );
+ findHandle = INVALID_HANDLE_VALUE;
return NULL;
}
return findFileData.cFileName;