< prev index next >
src/jdk.jpackage/windows/native/libjpackage/Utils.cpp
Print this page
@@ -39,11 +39,12 @@
pEnv->ReleaseStringChars(jstr, pJChars);
return wstr;
}
-jstring GetJStringFromString(JNIEnv *pEnv, const jchar *unicodeChars, jsize len) {
+jstring GetJStringFromString(JNIEnv *pEnv,
+ const jchar *unicodeChars, jsize len) {
return pEnv->NewString(unicodeChars, len);
}
wstring GetLongPath(wstring path) {
wstring result(L"");
@@ -62,11 +63,12 @@
result = wstring(pBuffer);
} else {
delete [] pBuffer;
pBuffer = new TCHAR[dwResult];
if (pBuffer != NULL) {
- DWORD dwResult2 = GetLongPathName(path.c_str(), pBuffer, dwResult);
+ DWORD dwResult2 =
+ GetLongPathName(path.c_str(), pBuffer, dwResult);
if (dwResult2 == (dwResult - 1)) {
result = wstring(pBuffer);
}
}
}
< prev index next >