mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 14:16:07 -06:00
Fix to compile on Windows.
This commit is contained in:
parent
7d5bd814d6
commit
b3446ff9f3
1 changed files with 2 additions and 5 deletions
|
|
@ -166,14 +166,11 @@ bool Pdb::Create(Host& local, const String& exefile, const String& cmdline, bool
|
|||
ZeroMemory(&pi, sizeof(PROCESS_INFORMATION));
|
||||
Buffer<char> env(local.environment.GetCount() + 1);
|
||||
memcpy(env, ~local.environment, local.environment.GetCount() + 1);
|
||||
DDUMP(local.environment);
|
||||
DDUMP(exefile);
|
||||
DDUMP(~cmd);
|
||||
DDUMP(~env);
|
||||
|
||||
bool h = CreateProcess(exefile, cmd, NULL, NULL, TRUE,
|
||||
/*NORMAL_PRIORITY_CLASS|CREATE_NEW_CONSOLE|*/DEBUG_ONLY_THIS_PROCESS/*|DEBUG_PROCESS*/,
|
||||
local.environment.GetCount() ? ~env : NULL, NULL, &si, &pi);
|
||||
DDUMP(GetLastErrorMessage());
|
||||
|
||||
if(!h) {
|
||||
Exclamation("Error creating process&[* " + DeQtf(exefile) + "]&" +
|
||||
"Windows error: " + DeQtf(GetLastErrorMessage()));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue