mirror of
https://github.com/corda/corda.git
synced 2025-01-08 14:03:06 +00:00
Added comments regarding java.io.File.toAbsolute() and WinRT/WP8
This commit is contained in:
parent
c33c148b6b
commit
34179f3332
@ -240,6 +240,13 @@ Java_java_io_File_toAbsolutePath(JNIEnv* e UNUSED, jclass, jstring path)
|
|||||||
|
|
||||||
return path;
|
return path;
|
||||||
# else
|
# else
|
||||||
|
// This could have worked, if GetFileInformationByHandleEx() returned volume information also
|
||||||
|
// There is a chance to get it, or using GetFullPathName, that is claimed to be unsupported
|
||||||
|
// or from System.IO.Path.GetFullPath(), but it's CLR and I see no way of calling it from
|
||||||
|
// C++/CX code
|
||||||
|
// Best wishes to everyone who will win this fight,
|
||||||
|
// Alexey Pelykh
|
||||||
|
/*
|
||||||
string_t chars = getChars(e, path);
|
string_t chars = getChars(e, path);
|
||||||
if(chars) {
|
if(chars) {
|
||||||
LARGE_INTEGER fileSize;
|
LARGE_INTEGER fileSize;
|
||||||
@ -263,6 +270,7 @@ Java_java_io_File_toAbsolutePath(JNIEnv* e UNUSED, jclass, jstring path)
|
|||||||
return e->NewString
|
return e->NewString
|
||||||
(reinterpret_cast<const jchar*>(pInfo->FileName), pInfo->FileNameLength / sizeof(WCHAR));
|
(reinterpret_cast<const jchar*>(pInfo->FileName), pInfo->FileNameLength / sizeof(WCHAR));
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
return path;
|
return path;
|
||||||
# endif
|
# endif
|
||||||
#else
|
#else
|
||||||
|
Loading…
Reference in New Issue
Block a user