Changeset 42995 in vbox
- Timestamp:
- Aug 27, 2012 11:41:36 AM (13 years ago)
- svn:sync-xref-src-repo-rev:
- 80327
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxService/VBoxServiceToolBox.cpp
r42764 r42995 367 367 bool fUsageOK = true; 368 368 369 c har szOutput[RTPATH_MAX] = { 0 };369 const char *pszOutput = NULL; 370 370 RTFILE hOutput = NIL_RTFILE; 371 371 uint32_t fFlags = RTFILE_O_CREATE_REPLACE /* Output file flags. */ … … 403 403 404 404 case 'o': 405 if (!RTStrPrintf(szOutput, sizeof(szOutput), ValueUnion.psz)) 406 rc = VERR_NO_MEMORY; 405 pszOutput = ValueUnion.psz; 407 406 break; 408 407 … … 438 437 if (RT_SUCCESS(rc)) 439 438 { 440 if ( strlen(szOutput))441 { 442 rc = RTFileOpen(&hOutput, szOutput, fFlags);439 if (pszOutput) 440 { 441 rc = RTFileOpen(&hOutput, pszOutput, fFlags); 443 442 if (RT_FAILURE(rc)) 444 443 RTMsgError("Could not create output file '%s', rc=%Rrc\n", 445 szOutput, rc);444 pszOutput, rc); 446 445 } 447 446
Note:
See TracChangeset
for help on using the changeset viewer.