mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 03:14:51 +00:00
[PSAPI]
Reduce DLL verbosity svn path=/trunk/; revision=60796
This commit is contained in:
parent
ba7c7ab755
commit
6cbda0abe5
1 changed files with 2 additions and 9 deletions
|
@ -749,7 +749,7 @@ GetMappedFileNameA(HANDLE hProcess,
|
||||||
DWORD Len;
|
DWORD Len;
|
||||||
LPWSTR FileName;
|
LPWSTR FileName;
|
||||||
|
|
||||||
DPRINT1("GetMappedFileNameA(%p, %p, %p, %lu)\n", hProcess, lpv, lpFilename, nSize);
|
DPRINT("GetMappedFileNameA(%p, %p, %p, %lu)\n", hProcess, lpv, lpFilename, nSize);
|
||||||
|
|
||||||
/* Allocate internal buffer for conversion */
|
/* Allocate internal buffer for conversion */
|
||||||
FileName = LocalAlloc(LMEM_FIXED, nSize * sizeof(WCHAR));
|
FileName = LocalAlloc(LMEM_FIXED, nSize * sizeof(WCHAR));
|
||||||
|
@ -761,9 +761,6 @@ GetMappedFileNameA(HANDLE hProcess,
|
||||||
/* Call W API */
|
/* Call W API */
|
||||||
Len = GetMappedFileNameW(hProcess, lpv, FileName, nSize);
|
Len = GetMappedFileNameW(hProcess, lpv, FileName, nSize);
|
||||||
|
|
||||||
DPRINT1("Got: %wS\n", FileName);
|
|
||||||
DPRINT1("Len: %lu\n", Len);
|
|
||||||
|
|
||||||
/* And convert output */
|
/* And convert output */
|
||||||
if (WideCharToMultiByte(CP_ACP, 0, FileName, (Len < nSize) ? Len + 1 : Len, lpFilename, nSize, NULL, NULL) == 0)
|
if (WideCharToMultiByte(CP_ACP, 0, FileName, (Len < nSize) ? Len + 1 : Len, lpFilename, nSize, NULL, NULL) == 0)
|
||||||
{
|
{
|
||||||
|
@ -794,7 +791,7 @@ GetMappedFileNameW(HANDLE hProcess,
|
||||||
WCHAR CharBuffer[MAX_PATH];
|
WCHAR CharBuffer[MAX_PATH];
|
||||||
} SectionName;
|
} SectionName;
|
||||||
|
|
||||||
DPRINT1("GetMappedFileNameW(%p, %p, %p, %lu)\n", hProcess, lpv, lpFilename, nSize);
|
DPRINT("GetMappedFileNameW(%p, %p, %p, %lu)\n", hProcess, lpv, lpFilename, nSize);
|
||||||
|
|
||||||
/* If no buffer, no need to keep going on */
|
/* If no buffer, no need to keep going on */
|
||||||
if (nSize == 0)
|
if (nSize == 0)
|
||||||
|
@ -808,14 +805,10 @@ GetMappedFileNameW(HANDLE hProcess,
|
||||||
&SectionName, sizeof(SectionName), &OutSize);
|
&SectionName, sizeof(SectionName), &OutSize);
|
||||||
if (!NT_SUCCESS(Status))
|
if (!NT_SUCCESS(Status))
|
||||||
{
|
{
|
||||||
DPRINT1("Failed!\n");
|
|
||||||
SetLastError(RtlNtStatusToDosError(Status));
|
SetLastError(RtlNtStatusToDosError(Status));
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
DPRINT1("Found: %wZ\n", &SectionName.SectionFileName);
|
|
||||||
DPRINT1("Len = %lu, nSize = %lu\n", SectionName.SectionFileName.Length / sizeof(WCHAR), nSize);
|
|
||||||
|
|
||||||
/* Prepare to copy file name */
|
/* Prepare to copy file name */
|
||||||
Len =
|
Len =
|
||||||
OutSize = SectionName.SectionFileName.Length / sizeof(WCHAR);
|
OutSize = SectionName.SectionFileName.Length / sizeof(WCHAR);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue