儲存庫 vbox 的更動 40295
- 時間撮記:
- 2012-2-29 下午01:35:36 (13 年 以前)
- 檔案:
-
- 修改 1 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/Additions/WINNT/SharedFolders/np/vboxmrxnp.cpp
r40269 r40295 509 509 if (dwStatus == WN_SUCCESS) 510 510 { 511 Log(("VBOXNP: NPGetConnection: RemoteName: %ls\n",512 RemoteName));513 514 511 ULONG cbRemoteName = (lstrlen(RemoteName) + 1) * sizeof (WCHAR); /* Including the trailing 0. */ 512 513 Log(("VBOXNP: NPGetConnection: RemoteName: %ls, cb %d\n", 514 RemoteName, cbRemoteName)); 515 515 516 516 DWORD len = sizeof(WCHAR) + cbRemoteName; /* Including the leading '\'. */ … … 1538 1538 } 1539 1539 1540 /* Adjust for actual remote name length . */1540 /* Adjust for actual remote name length as a part of the universal name. */ 1541 1541 BufferRequired += RemoteNameLength; 1542 1542 1543 /* And for required place for remaining path . */1543 /* And for required place for remaining path as a part of the universal name. */ 1544 1544 BufferRequired += RemainingPathLength; 1545 1545 … … 1562 1562 lpString--; /* Trailing NULL */ 1563 1563 1564 lpDelimiter = lpString; /* Delimiter will be inserted later. For now keep the NULL terminated string. */ 1564 lpDelimiter = lpString; /* Delimiter between the remote name and the remaining path. 1565 * May be 0 if the remaining path is empty. 1566 */ 1565 1567 1566 1568 CopyMemory( lpString, lpRemainingPath, RemainingPathLength); 1567 1569 lpString += RemainingPathLength / sizeof (WCHAR); 1568 1570 1569 *lpDelimiter = 0; 1571 *lpDelimiter = 0; /* Keep NULL terminated remote name. */ 1570 1572 1571 1573 pRemoteNameInfo->lpConnectionName = lpString; … … 1576 1578 CopyMemory( lpString, lpRemainingPath, RemainingPathLength); 1577 1579 1578 *lpDelimiter = L'\\'; 1580 /* If remaining path was not empty, restore the delimiter in the universal name. */ 1581 if (RemainingPathLength > sizeof(WCHAR)) 1582 { 1583 *lpDelimiter = L'\\'; 1584 } 1579 1585 } 1580 1586
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器