mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Cleanup (deprecated API usage)
This commit is contained in:
@@ -113,7 +113,7 @@ public class Restarter {
|
||||
final int pid = kernel32.GetCurrentProcessId();
|
||||
final IntByReference argc = new IntByReference();
|
||||
Pointer argv_ptr = shell32.CommandLineToArgvW(kernel32.GetCommandLineW(), argc);
|
||||
final String[] argv = argv_ptr.getStringArray(0, argc.getValue(), true);
|
||||
final String[] argv = argv_ptr.getWideStringArray(0, argc.getValue());
|
||||
kernel32.LocalFree(argv_ptr);
|
||||
|
||||
doScheduleRestart(new File(PathManager.getBinPath(), "restarter.exe"), new Consumer<List<String>>() {
|
||||
|
||||
Reference in New Issue
Block a user