Changeset 7433 in orxonox.OLD for trunk/src/lib/util
- Timestamp:
- Apr 29, 2006, 2:33:03 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/util/osdir.h
r7425 r7433 121 121 #elif defined(OSLINK_OSDIR_WINDOWS) 122 122 123 #ifdef DATADIR 124 #undef DATADIR 125 #endif 126 123 127 #include <windows.h> 124 128 #include <winbase.h> … … 137 141 ~Directory() 138 142 { 139 this->close 143 this->close(); 140 144 } 141 145 … … 151 155 { 152 156 willfail = true; 153 return ;157 return false; 154 158 } 155 159 std::string Full(directoryName); … … 160 164 handle = FindFirstFile( (Full+"*").c_str(), &entry); 161 165 if (handle == INVALID_HANDLE_VALUE) 162 willfail = true; 163 else 164 current = entry.cFileName; 166 { 167 willfail = true; 168 return false; 169 } 170 else 171 { 172 willfail = false; 173 current = entry.cFileName; 174 return true; 175 } 165 176 } 166 177
Note: See TracChangeset
for help on using the changeset viewer.