mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 21:36:11 +00:00
[msgina]
- Promote some debug messages to errors in order to understand why trying to open the task manager from the loged on dialog sometimes fails svn path=/trunk/; revision=58786
This commit is contained in:
parent
7aecedf790
commit
f894411e39
1 changed files with 4 additions and 4 deletions
|
@ -268,14 +268,14 @@ WlxStartApplication(
|
||||||
len = GetWindowsDirectoryW(CurrentDirectory, MAX_PATH);
|
len = GetWindowsDirectoryW(CurrentDirectory, MAX_PATH);
|
||||||
if (len == 0 || len > MAX_PATH)
|
if (len == 0 || len > MAX_PATH)
|
||||||
{
|
{
|
||||||
WARN("GetWindowsDirectoryW() failed\n");
|
ERR("GetWindowsDirectoryW() failed\n");
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
ret = DuplicateTokenEx(pgContext->UserToken, MAXIMUM_ALLOWED, NULL, SecurityImpersonation, TokenPrimary, &hAppToken);
|
ret = DuplicateTokenEx(pgContext->UserToken, MAXIMUM_ALLOWED, NULL, SecurityImpersonation, TokenPrimary, &hAppToken);
|
||||||
if (!ret)
|
if (!ret)
|
||||||
{
|
{
|
||||||
WARN("DuplicateTokenEx() failed with error %lu\n", GetLastError());
|
ERR("DuplicateTokenEx() failed with error %lu\n", GetLastError());
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -290,7 +290,7 @@ WlxStartApplication(
|
||||||
len = GetWindowsDirectoryW(CurrentDirectory, MAX_PATH);
|
len = GetWindowsDirectoryW(CurrentDirectory, MAX_PATH);
|
||||||
if (len == 0 || len > MAX_PATH)
|
if (len == 0 || len > MAX_PATH)
|
||||||
{
|
{
|
||||||
WARN("GetWindowsDirectoryW() failed\n");
|
ERR("GetWindowsDirectoryW() failed\n");
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
ret = CreateProcessAsUserW(
|
ret = CreateProcessAsUserW(
|
||||||
|
@ -309,7 +309,7 @@ WlxStartApplication(
|
||||||
CloseHandle(ProcessInformation.hThread);
|
CloseHandle(ProcessInformation.hThread);
|
||||||
CloseHandle(hAppToken);
|
CloseHandle(hAppToken);
|
||||||
if (!ret)
|
if (!ret)
|
||||||
WARN("CreateProcessAsUserW() failed with error %lu\n", GetLastError());
|
ERR("CreateProcessAsUserW() failed with error %lu\n", GetLastError());
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue