mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 12:23:31 +00:00
[NTOSKRNL]
Fix compilation with MI_TRACE_PFNS and MSVC svn path=/trunk/; revision=64530
This commit is contained in:
@@ -709,10 +709,10 @@ CcRosCreateVacb (
|
||||
/* Create a virtual mapping for this memory area */
|
||||
MI_SET_USAGE(MI_USAGE_CACHE);
|
||||
#if MI_TRACE_PFNS
|
||||
PWCHAR pos = NULL;
|
||||
ULONG len = 0;
|
||||
if ((SharedCacheMap->FileObject) && (SharedCacheMap->FileObject->FileName.Buffer))
|
||||
{
|
||||
PWCHAR pos = NULL;
|
||||
ULONG len = 0;
|
||||
pos = wcsrchr(SharedCacheMap->FileObject->FileName.Buffer, '\\');
|
||||
len = wcslen(pos) * sizeof(WCHAR);
|
||||
if (pos) snprintf(MI_PFN_CURRENT_PROCESS_NAME, min(16, len), "%S", pos);
|
||||
|
||||
@@ -181,10 +181,10 @@ MiLoadImageSection(IN OUT PVOID *SectionPtr,
|
||||
/* Some debug stuff */
|
||||
MI_SET_USAGE(MI_USAGE_DRIVER_PAGE);
|
||||
#if MI_TRACE_PFNS
|
||||
PWCHAR pos = NULL;
|
||||
ULONG len = 0;
|
||||
if (FileName->Buffer)
|
||||
{
|
||||
PWCHAR pos = NULL;
|
||||
ULONG len = 0;
|
||||
pos = wcsrchr(FileName->Buffer, '\\');
|
||||
len = wcslen(pos) * sizeof(WCHAR);
|
||||
if (pos) snprintf(MI_PFN_CURRENT_PROCESS_NAME, min(16, len), "%S", pos);
|
||||
|
||||
Reference in New Issue
Block a user