Changeset 59778 in vbox for trunk/src/VBox/GuestHost/DragAndDrop
- Timestamp:
- Feb 22, 2016 4:44:07 PM (9 years ago)
- svn:sync-xref-src-repo-rev:
- 105652
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/GuestHost/DragAndDrop/DnDURIObject.cpp
r58069 r59778 6 6 7 7 /* 8 * Copyright (C) 2014-201 5Oracle Corporation8 * Copyright (C) 2014-2016 Oracle Corporation 9 9 * 10 10 * This file is part of VirtualBox Open Source Edition (OSE), as … … 59 59 { 60 60 case File: 61 u.m_hFile = N ULL;61 u.m_hFile = NIL_RTFILE; 62 62 break; 63 63 … … 77 77 void DnDURIObject::closeInternal(void) 78 78 { 79 switch (m_Type) 80 { 81 case File: 82 { 83 if (u.m_hFile) 79 LogFlowThisFuncEnter(); 80 switch (m_Type) 81 { 82 case File: 83 { 84 if (u.m_hFile != NIL_RTFILE) 84 85 { 85 86 int rc2 = RTFileClose(u.m_hFile); 86 87 AssertRC(rc2); 87 88 88 u.m_hFile = N ULL;89 u.m_hFile = NIL_RTFILE; 89 90 } 90 91 break; … … 97 98 break; 98 99 } 99 100 LogFlowThisFuncLeave();101 100 } 102 101 … … 136 135 { 137 136 case File: 138 fIsOpen = u.m_hFile != N ULL;137 fIsOpen = u.m_hFile != NIL_RTFILE; 139 138 break; 140 139 … … 181 180 && fOpen) /* Opening mode specified? */ 182 181 { 182 LogFlowThisFunc(("strPath=%s, fOpen=0x%x, enmType=%RU32, enmDest=%RU32\n", 183 strPath.c_str(), fOpen, enmType, enmDest)); 183 184 switch (enmType) 184 185 { 185 186 case File: 186 187 { 187 if ( !u.m_hFile)188 if (u.m_hFile == NIL_RTFILE) 188 189 { 189 190 /* … … 192 193 * it over. 193 194 */ 195 LogFlowThisFunc(("Opening ...\n")); 194 196 rc = RTFileOpen(&u.m_hFile, strPath.c_str(), fOpen); 195 LogFlowThisFunc(("strPath=%s, fOpen=0x%x, enmType=%RU32, enmDest=%RU32, rc=%Rrc\n",196 strPath.c_str(), fOpen, enmType, enmDest, rc));197 197 if (RT_SUCCESS(rc)) 198 198 rc = RTFileGetSize(u.m_hFile, &m_cbSize); … … 364 364 void DnDURIObject::Reset(void) 365 365 { 366 LogFlowThisFuncEnter(); 367 366 368 Close(); 367 369 … … 396 398 m_cbProcessed += cbWritten; 397 399 } 398 399 400 break; 400 401 } … … 417 418 } 418 419 419 LogFlow Func(("Returning strSourcePath=%s, cbWritten=%zu, rc=%Rrc\n", m_strSrcPath.c_str(), cbWritten, rc));420 LogFlowThisFunc(("Returning strSourcePath=%s, cbWritten=%zu, rc=%Rrc\n", m_strSrcPath.c_str(), cbWritten, rc)); 420 421 return rc; 421 422 }
Note:
See TracChangeset
for help on using the changeset viewer.