mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 01:15:09 +00:00
[NTOSKRNL]
Fix compilation with MI_TRACE_PFNS and MSVC svn path=/trunk/; revision=64530
This commit is contained in:
parent
2c4c58547d
commit
4b31efff8f
2 changed files with 4 additions and 4 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue