Changeset 55556 in vbox for trunk/src/VBox/GuestHost/DragAndDrop
- Timestamp:
- Apr 30, 2015 2:27:39 PM (10 years ago)
- svn:sync-xref-src-repo-rev:
- 99923
- Location:
- trunk/src/VBox/GuestHost/DragAndDrop
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/GuestHost/DragAndDrop/DnDURIList.cpp
r55512 r55556 82 82 m_cbTotal += cbSize; 83 83 #ifdef DEBUG_andy 84 LogFlowFunc(("strSrcPath=%s, strDstPath=%s, fMode=0x%x, cbSize=%RU64, cbTotal=%zu\n", 85 pcszPath, &pcszPath[cbBaseLen], objInfo.Attr.fMode, cbSize, m_cbTotal)); 86 #endif 87 88 PRTDIR hDir; 84 LogFlowFunc(("strSrcPath=%s, strDstPath=%s, fMode=0x%x, cbSize=%RU64, cTotal=%RU32, cbTotal=%zu\n", 85 pcszPath, &pcszPath[cbBaseLen], objInfo.Attr.fMode, cbSize, m_cTotal, m_cbTotal)); 86 #endif 87 89 88 /* We have to try to open even symlinks, cause they could 90 89 * be symlinks to directories. */ 90 PRTDIR hDir; 91 91 rc = RTDirOpen(&hDir, pcszPath); 92 92 93 /* The following error happens when this was a symlink 93 * to a nfile or a regular file. */94 * to a file or a regular file. */ 94 95 if ( rc == VERR_PATH_NOT_FOUND 95 96 || rc == VERR_NOT_A_DIRECTORY) … … 150 151 pszNewFile, &pszNewFile[cbBaseLen], 151 152 objInfo1.Attr.fMode, cbSize)); 153 m_cTotal++; 152 154 m_cbTotal += cbSize; 155 #ifdef DEBUG_andy 156 LogFlowFunc(("strSrcPath=%s, strDstPath=%s, fMode=0x%x, cbSize=%RU64, cTotal=%RU32, cbTotal=%zu\n", 157 pszNewFile, &pszNewFile[cbBaseLen], objInfo1.Attr.fMode, cbSize, m_cTotal, m_cbTotal)); 158 #endif 153 159 } 154 160 else /* Handle symlink directories. */ 155 161 rc = appendPathRecursive(pszNewFile, cbBaseLen, fFlags); 156 #ifdef DEBUG_andy 157 LogFlowFunc(("strSrcPath=%s, strDstPath=%s, fMode=0x%x, cbSize=%RU64, cbTotal=%zu\n", 158 pszNewFile, &pszNewFile[cbBaseLen], objInfo1.Attr.fMode, cbSize, m_cbTotal)); 159 #endif 162 160 163 RTStrFree(pszNewFile); 161 164 } … … 166 169 167 170 default: 171 /* Just ignore the rest. */ 168 172 break; 169 173 } -
trunk/src/VBox/GuestHost/DragAndDrop/DnDURIObject.cpp
r55549 r55556 37 37 DnDURIObject::DnDURIObject(void) 38 38 : m_Type(Unknown) 39 , m_f Mode(0)39 , m_fCreationMode(0) 40 40 , m_cbSize(0) 41 41 , m_cbProcessed(0) … … 51 51 , m_strSrcPath(strSrcPath) 52 52 , m_strTgtPath(strDstPath) 53 , m_f Mode(fMode)53 , m_fCreationMode(fMode) 54 54 , m_cbSize(cbSize) 55 55 , m_cbProcessed(0) … … 199 199 rc = RTFileGetSize(u.m_hFile, &m_cbSize); 200 200 if (RT_SUCCESS(rc)) 201 { 202 LogFlowFunc(("cbSize=%RU64, fMode=%RU32\n", m_cbSize, m_fCreationMode)); 201 203 m_cbProcessed = 0; 204 } 202 205 } 203 206 else … … 345 348 Close(); 346 349 347 m_Type = Unknown;348 m_strSrcPath = "";349 m_strTgtPath = "";350 m_f Mode= 0;351 m_cbSize = 0;352 m_cbProcessed = 0;350 m_Type = Unknown; 351 m_strSrcPath = ""; 352 m_strTgtPath = ""; 353 m_fCreationMode = 0; 354 m_cbSize = 0; 355 m_cbProcessed = 0; 353 356 } 354 357
Note:
See TracChangeset
for help on using the changeset viewer.