Author: pschweitzer
Date: Wed Oct 30 10:58:31 2013
New Revision: 60796
URL:
http://svn.reactos.org/svn/reactos?rev=60796&view=rev
Log:
[PSAPI]
Reduce DLL verbosity
Modified:
trunk/reactos/dll/win32/psapi/psapi.c
Modified: trunk/reactos/dll/win32/psapi/psapi.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/psapi/psapi.c?re…
==============================================================================
--- trunk/reactos/dll/win32/psapi/psapi.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/psapi/psapi.c [iso-8859-1] Wed Oct 30 10:58:31 2013
@@ -749,7 +749,7 @@
DWORD Len;
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 */
FileName = LocalAlloc(LMEM_FIXED, nSize * sizeof(WCHAR));
@@ -760,9 +760,6 @@
/* Call W API */
Len = GetMappedFileNameW(hProcess, lpv, FileName, nSize);
-
- DPRINT1("Got: %wS\n", FileName);
- DPRINT1("Len: %lu\n", Len);
/* And convert output */
if (WideCharToMultiByte(CP_ACP, 0, FileName, (Len < nSize) ? Len + 1 : Len,
lpFilename, nSize, NULL, NULL) == 0)
@@ -794,7 +791,7 @@
WCHAR CharBuffer[MAX_PATH];
} 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 (nSize == 0)
@@ -808,13 +805,9 @@
&SectionName, sizeof(SectionName), &OutSize);
if (!NT_SUCCESS(Status))
{
- DPRINT1("Failed!\n");
SetLastError(RtlNtStatusToDosError(Status));
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 */
Len =