setupapi: Remove debug traces from allocation routines.
This commit is contained in:
parent
9970ccb9a5
commit
c26a816f19
|
@ -51,7 +51,6 @@ WINE_DEFAULT_DEBUG_CHANNEL(setupapi);
|
||||||
*/
|
*/
|
||||||
VOID WINAPI MyFree(LPVOID lpMem)
|
VOID WINAPI MyFree(LPVOID lpMem)
|
||||||
{
|
{
|
||||||
TRACE("%p\n", lpMem);
|
|
||||||
HeapFree(GetProcessHeap(), 0, lpMem);
|
HeapFree(GetProcessHeap(), 0, lpMem);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -70,7 +69,6 @@ VOID WINAPI MyFree(LPVOID lpMem)
|
||||||
*/
|
*/
|
||||||
LPVOID WINAPI MyMalloc(DWORD dwSize)
|
LPVOID WINAPI MyMalloc(DWORD dwSize)
|
||||||
{
|
{
|
||||||
TRACE("%u\n", dwSize);
|
|
||||||
return HeapAlloc(GetProcessHeap(), 0, dwSize);
|
return HeapAlloc(GetProcessHeap(), 0, dwSize);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -95,8 +93,6 @@ LPVOID WINAPI MyMalloc(DWORD dwSize)
|
||||||
*/
|
*/
|
||||||
LPVOID WINAPI MyRealloc(LPVOID lpSrc, DWORD dwSize)
|
LPVOID WINAPI MyRealloc(LPVOID lpSrc, DWORD dwSize)
|
||||||
{
|
{
|
||||||
TRACE("%p %u\n", lpSrc, dwSize);
|
|
||||||
|
|
||||||
if (lpSrc == NULL)
|
if (lpSrc == NULL)
|
||||||
return HeapAlloc(GetProcessHeap(), 0, dwSize);
|
return HeapAlloc(GetProcessHeap(), 0, dwSize);
|
||||||
|
|
||||||
|
@ -123,8 +119,6 @@ LPWSTR WINAPI DuplicateString(LPCWSTR lpSrc)
|
||||||
{
|
{
|
||||||
LPWSTR lpDst;
|
LPWSTR lpDst;
|
||||||
|
|
||||||
TRACE("%s\n", debugstr_w(lpSrc));
|
|
||||||
|
|
||||||
lpDst = MyMalloc((lstrlenW(lpSrc) + 1) * sizeof(WCHAR));
|
lpDst = MyMalloc((lstrlenW(lpSrc) + 1) * sizeof(WCHAR));
|
||||||
if (lpDst == NULL)
|
if (lpDst == NULL)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
@ -285,8 +279,6 @@ LPWSTR WINAPI MultiByteToUnicode(LPCSTR lpMultiByteStr, UINT uCodePage)
|
||||||
LPWSTR lpUnicodeStr;
|
LPWSTR lpUnicodeStr;
|
||||||
int nLength;
|
int nLength;
|
||||||
|
|
||||||
TRACE("%s %d\n", debugstr_a(lpMultiByteStr), uCodePage);
|
|
||||||
|
|
||||||
nLength = MultiByteToWideChar(uCodePage, 0, lpMultiByteStr,
|
nLength = MultiByteToWideChar(uCodePage, 0, lpMultiByteStr,
|
||||||
-1, NULL, 0);
|
-1, NULL, 0);
|
||||||
if (nLength == 0)
|
if (nLength == 0)
|
||||||
|
@ -328,8 +320,6 @@ LPSTR WINAPI UnicodeToMultiByte(LPCWSTR lpUnicodeStr, UINT uCodePage)
|
||||||
LPSTR lpMultiByteStr;
|
LPSTR lpMultiByteStr;
|
||||||
int nLength;
|
int nLength;
|
||||||
|
|
||||||
TRACE("%s %d\n", debugstr_w(lpUnicodeStr), uCodePage);
|
|
||||||
|
|
||||||
nLength = WideCharToMultiByte(uCodePage, 0, lpUnicodeStr, -1,
|
nLength = WideCharToMultiByte(uCodePage, 0, lpUnicodeStr, -1,
|
||||||
NULL, 0, NULL, NULL);
|
NULL, 0, NULL, NULL);
|
||||||
if (nLength == 0)
|
if (nLength == 0)
|
||||||
|
|
Loading…
Reference in New Issue