Changeset 55581 in vbox
- Timestamp:
- May 1, 2015 11:01:59 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxService/VBoxServiceControlSession.cpp
r55580 r55581 142 142 uint32_t uFlagsRemRec = 0; 143 143 bool fRecursive = false; 144 /** @todo r=bird: Unnecessary variable fRecursive. You can check for 145 * DIRREMOVE_FLAG_RECURSIVE directly in the flags when deciding which API to 146 * call. */ 144 147 145 148 if (!(uFlags & ~DIRREMOVE_FLAG_VALID_MASK)) … … 151 154 fRecursive = true; 152 155 } 153 156 /** @todo r=bird: Understand how APIs you use work (read docs, check constant, 157 * check code). If you check the actual values of RTDIRRMREC_F_CONTENT_AND_DIR 158 * and RTDIRRMREC_F_CONTENT_ONLY, you'd notice that the first one is 0 and the 159 * second is 1. This code is a little confused about how it all works, though 160 * it ends up doing the right thing as if by accident almost. */ 154 161 if (uFlags & DIRREMOVE_FLAG_CONTENT_AND_DIR) 155 162 { … … 170 177 szDir, uFlags, fRecursive); 171 178 179 /** @todo r=bird: Convoluted code flow. It would be shorter and easier to 180 * read if you moved this code up and into the flags-are-valid if body. */ 172 181 if (RT_SUCCESS(rc)) 173 182 {
Note:
See TracChangeset
for help on using the changeset viewer.

