| 5959 | } |
| 5960 | |
| 5961 | bool WindowsSystem::GetShortPathName( QString fullPathName, QString &shortPathName ) |
| 5962 | { |
| 5963 | TCHAR shortFilePath[MAX_PATH + 1]; |
| 5964 | // GetShortPathName will return 0 if it fails |
| 5965 | int success = ::GetShortPathName((LPCWSTR) fullPathName.utf16(), (LPWSTR) &shortFilePath, MAX_PATH + 1); |
| 5966 | if (success) |
| 5967 | { |
| 5968 | shortPathName = QString::fromUtf16((const ushort *) shortFilePath); |
| 5969 | return true; |
| 5970 | } |
| 5971 | return false; |
| 5972 | } |
| 5973 | |
| 5974 | // Returns the absolute path of the HTML source for the shared folder widget. |
| 5975 | QString WindowsSystem::GetSharingWidgetPath() |
no outgoing calls
no test coverage detected