< prev index next >
src/jdk.incubator.jpackage/windows/native/libapplauncher/WindowsPlatform.cpp
Print this page
*** 168,182 ****
bool &release) {
// Not Implemented.
return NULL;
}
- void WindowsPlatform::SetCurrentDirectory(TString Value) {
- _wchdir(Value.data());
- }
-
TString WindowsPlatform::GetPackageRootDirectory() {
TString filename = GetModuleFileName();
return FilePath::ExtractFilePath(filename);
}
TString WindowsPlatform::GetAppDataDirectory() {
--- 168,179 ----
bool &release) {
// Not Implemented.
return NULL;
}
TString WindowsPlatform::GetPackageRootDirectory() {
+ TString result;
TString filename = GetModuleFileName();
return FilePath::ExtractFilePath(filename);
}
TString WindowsPlatform::GetAppDataDirectory() {
*** 706,716 ****
iterator != Arguments.end(); iterator++) {
command += TString(_T(" ")) + *iterator;
}
if (::CreateProcess(Application.data(), (wchar_t*)command.data(), NULL,
! NULL, FALSE, 0, NULL, NULL, &startupInfo, &FProcessInfo) == FALSE) {
TString message = PlatformString::Format(
_T("Error: Unable to create process %s"),
Application.data());
throw Exception(message);
} else {
--- 703,714 ----
iterator != Arguments.end(); iterator++) {
command += TString(_T(" ")) + *iterator;
}
if (::CreateProcess(Application.data(), (wchar_t*)command.data(), NULL,
! NULL, FALSE, 0, NULL, NULL, &startupInfo, &FProcessInfo)
! == FALSE) {
TString message = PlatformString::Format(
_T("Error: Unable to create process %s"),
Application.data());
throw Exception(message);
} else {
< prev index next >