From be8a2bb4fb432283e35122b6da0c120aadc9915e Mon Sep 17 00:00:00 2001 From: Stefan Ginsberg Date: Tue, 9 Dec 2008 18:04:58 +0000 Subject: [PATCH] - Temporarily add tracing to ConvertStringSecurityDescriptorToSecurityDescriptorW and LocalAlloc to figure out why the tests crashes on build server -- will be reverted ASAP svn path=/trunk/; revision=37974 --- reactos/dll/win32/advapi32/sec/sid.c | 1 + reactos/dll/win32/kernel32/mem/local.c | 3 +++ 2 files changed, 4 insertions(+) diff --git a/reactos/dll/win32/advapi32/sec/sid.c b/reactos/dll/win32/advapi32/sec/sid.c index f1ef4dfcdad..0d593068eee 100644 --- a/reactos/dll/win32/advapi32/sec/sid.c +++ b/reactos/dll/win32/advapi32/sec/sid.c @@ -1288,6 +1288,7 @@ ConvertStringSecurityDescriptorToSecurityDescriptorW( if (SecurityDescriptorSize) *SecurityDescriptorSize = relativeSdSize; *SecurityDescriptor = relativeSd; + if ((ULONG_PTR)relativeSd == 0xC) DbgPrint("ConvertStringSecurityDescriptorToSecurityDescriptorW: relativeSd is 0xC\n"); cleanup: if (GetSecurityDescriptorOwner(sd, &pSid, &dummy)) diff --git a/reactos/dll/win32/kernel32/mem/local.c b/reactos/dll/win32/kernel32/mem/local.c index 7627fc24764..18e2b8d66b3 100644 --- a/reactos/dll/win32/kernel32/mem/local.c +++ b/reactos/dll/win32/kernel32/mem/local.c @@ -52,6 +52,7 @@ LocalAlloc(UINT uFlags, /* Allocate heap for it */ Ptr = RtlAllocateHeap(hProcessHeap, Flags, dwBytes); BASE_TRACE_ALLOC2(Ptr); + if ((ULONG_PTR)Ptr == 0xC) DbgPrint("LocalAlloc: Ptr is 0xC\n"); return Ptr; } @@ -131,10 +132,12 @@ Quickie: } /* Set the pointer */ + if ((ULONG_PTR)hMemory == 0xC) DbgPrint("LocalAlloc: hMemory is 0xC\n"); Ptr = hMemory; } /* Return the pointer */ + if ((ULONG_PTR)Ptr == 0xC) DbgPrint("LocalAlloc: Ptr is 0xC\n"); return Ptr; }