Author: hpoussin
Date: Thu Jul 26 19:13:36 2007
New Revision: 27850
URL:
http://svn.reactos.org/svn/reactos?rev=27850&view=rev
Log:
Don't abuse debug system
Modified:
trunk/reactos/base/applications/winhelp/winhelp.h
trunk/reactos/base/applications/winhelp/winhelp.rbuild
trunk/reactos/base/system/winlogon/sas.c
trunk/reactos/base/system/winlogon/screensaver.c
trunk/reactos/base/system/winlogon/setup.c
trunk/reactos/base/system/winlogon/winlogon.c
trunk/reactos/base/system/winlogon/winlogon.rbuild
trunk/reactos/base/system/winlogon/wlx.c
trunk/reactos/dll/win32/advapi32/misc/shutdown.c
trunk/reactos/dll/win32/advapi32/reg/reg.c
trunk/reactos/dll/win32/advapi32/token/token.c
trunk/reactos/dll/win32/icmp/icmp.rbuild
trunk/reactos/dll/win32/iphlpapi/ifenum_reactos.c
trunk/reactos/dll/win32/iphlpapi/iphlpapi_main.c
trunk/reactos/dll/win32/iphlpapi/ipstats_reactos.c
trunk/reactos/dll/win32/iphlpapi/route_reactos.c
trunk/reactos/dll/win32/kernel32/kernel32.rbuild
trunk/reactos/dll/win32/kernel32/misc/lcformat.c
trunk/reactos/dll/win32/msgina/gui.c
trunk/reactos/dll/win32/msgina/msgina.c
trunk/reactos/dll/win32/msgina/msgina.rbuild
trunk/reactos/dll/win32/msgina/tui.c
trunk/reactos/dll/win32/newdev/stubs.c
trunk/reactos/dll/win32/rpcrt4/ndr_contexth.c
trunk/reactos/dll/win32/shell32/shfldr_fs.c
trunk/reactos/dll/win32/shell32/shv_bg_cmenu.c
trunk/reactos/dll/win32/user32/controls/button.c
trunk/reactos/dll/win32/user32/controls/listbox.c
trunk/reactos/dll/win32/user32/controls/scrollbar.c
trunk/reactos/dll/win32/user32/include/user32.h
trunk/reactos/dll/win32/user32/misc/desktop.c
trunk/reactos/dll/win32/user32/misc/display.c
trunk/reactos/dll/win32/user32/misc/object.c
trunk/reactos/dll/win32/user32/windows/bitmap.c
trunk/reactos/dll/win32/user32/windows/class.c
trunk/reactos/dll/win32/user32/windows/clipboard.c
trunk/reactos/dll/win32/user32/windows/defwnd.c
trunk/reactos/dll/win32/user32/windows/dialog.c
trunk/reactos/dll/win32/user32/windows/icon.c
trunk/reactos/dll/win32/user32/windows/input.c
trunk/reactos/dll/win32/user32/windows/menu.c
trunk/reactos/dll/win32/user32/windows/message.c
trunk/reactos/dll/win32/user32/windows/window.c
trunk/reactos/dll/win32/user32/windows/winpos.c
trunk/reactos/dll/win32/winspool/winspool.rbuild
trunk/reactos/lib/sdk/crt/wine/heap.c
trunk/reactos/lib/sdk/crt/wine/thread.c
trunk/reactos/lib/sdk/crt/wine/undname.c
trunk/reactos/subsystems/win32/win32k/ntuser/class.c
trunk/reactos/subsystems/win32/win32k/ntuser/desktop.c
Modified: trunk/reactos/base/applications/winhelp/winhelp.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/winhelp/…
==============================================================================
--- trunk/reactos/base/applications/winhelp/winhelp.h (original)
+++ trunk/reactos/base/applications/winhelp/winhelp.h Thu Jul 26 19:13:36 2007
@@ -32,8 +32,6 @@
#define SHADOW_DY 10
#define BUTTON_CX 6
#define BUTTON_CY 6
-
-#define WINE_WARN DPRINT
#ifndef RC_INVOKED
Modified: trunk/reactos/base/applications/winhelp/winhelp.rbuild
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/winhelp/…
==============================================================================
--- trunk/reactos/base/applications/winhelp/winhelp.rbuild (original)
+++ trunk/reactos/base/applications/winhelp/winhelp.rbuild Thu Jul 26 19:13:36 2007
@@ -5,6 +5,7 @@
<define name="__USE_W32API" />
<define name="_WIN32_IE">0x0600</define>
<define name="_WIN32_WINNT">0x0501</define>
+ <library>wine</library>
<library>kernel32</library>
<library>user32</library>
<library>gdi32</library>
@@ -13,14 +14,12 @@
<library>advapi32</library>
<library>shell32</library>
<library>comctl32</library>
- <compilationunit name="unit.c">
- <file>callback.c</file>
- <file>hlpfile.c</file>
- <file>macro.c</file>
- <file>string.c</file>
- <file>winhelp.c</file>
- <file>lex.yy.c</file>
- </compilationunit>
+ <file>callback.c</file>
+ <file>hlpfile.c</file>
+ <file>macro.c</file>
+ <file>string.c</file>
+ <file>winhelp.c</file>
+ <file>lex.yy.c</file>
<file>rsrc.rc</file>
</module>
</rbuild>
Modified: trunk/reactos/base/system/winlogon/sas.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/system/winlogon/sas.c…
==============================================================================
--- trunk/reactos/base/system/winlogon/sas.c (original)
+++ trunk/reactos/base/system/winlogon/sas.c Thu Jul 26 19:13:36 2007
@@ -1,7 +1,7 @@
/*
* COPYRIGHT: See COPYING in the top level directory
- * PROJECT: ReactOS kernel
- * FILE: services/winlogon/sas.c
+ * PROJECT: ReactOS Winlogon
+ * FILE: base/system/winlogon/sas.c
* PURPOSE: Secure Attention Sequence
* PROGRAMMERS: Thomas Weidenmueller (w3seek(a)users.sourceforge.net)
* Hervé Poussineau (hpoussin(a)reactos.org)
@@ -9,10 +9,16 @@
* Created 28/03/2004
*/
+/* INCLUDES *****************************************************************/
+
#include "winlogon.h"
//#define YDEBUG
#include <wine/debug.h>
+
+WINE_DEFAULT_DEBUG_CHANNEL(winlogon);
+
+/* GLOBALS ******************************************************************/
#define WINLOGON_SAS_CLASS L"SAS Window class"
#define WINLOGON_SAS_TITLE L"SAS window"
@@ -23,6 +29,8 @@
#ifdef __USE_W32API
extern BOOL STDCALL SetLogonNotifyWindow(HWND Wnd, HWINSTA WinSta);
#endif
+
+/* FUNCTIONS ****************************************************************/
static BOOL
StartTaskManager(
Modified: trunk/reactos/base/system/winlogon/screensaver.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/system/winlogon/scree…
==============================================================================
--- trunk/reactos/base/system/winlogon/screensaver.c (original)
+++ trunk/reactos/base/system/winlogon/screensaver.c Thu Jul 26 19:13:36 2007
@@ -1,15 +1,21 @@
/*
* COPYRIGHT: See COPYING in the top level directory
- * PROJECT: ReactOS kernel
- * FILE: services/winlogon/screensaver.c
+ * PROJECT: ReactOS Winlogon
+ * FILE: base/system/winlogon/screensaver.c
* PURPOSE: Screen saver management
* PROGRAMMERS: Hervé Poussineau (hpoussin(a)reactos.org)
*/
+/* INCLUDES *****************************************************************/
+
#include "winlogon.h"
#define YDEBUG
#include <wine/debug.h>
+
+WINE_DEFAULT_DEBUG_CHANNEL(winlogon);
+
+/* FUNCTIONS ****************************************************************/
#ifndef USE_GETLASTINPUTINFO
static LRESULT CALLBACK
Modified: trunk/reactos/base/system/winlogon/setup.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/system/winlogon/setup…
==============================================================================
--- trunk/reactos/base/system/winlogon/setup.c (original)
+++ trunk/reactos/base/system/winlogon/setup.c Thu Jul 26 19:13:36 2007
@@ -1,36 +1,19 @@
/*
- * ReactOS kernel
- * Copyright (C) 2003 ReactOS Team
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
- */
-/* $Id$
* COPYRIGHT: See COPYING in the top level directory
- * PROJECT: ReactOS winlogon
- * FILE: subsys/system/winlogon/setup.h
+ * PROJECT: ReactOS Winlogon
+ * FILE: base/system/winlogon/setup.c
* PURPOSE: Setup support functions
- * PROGRAMMER: Eric Kohl
+ * PROGRAMMERS: Eric Kohl
*/
/* INCLUDES *****************************************************************/
#include "winlogon.h"
-#define NDEBUG
-#include <debug.h>
+//#define YDEBUG
+#include <wine/debug.h>
+WINE_DEFAULT_DEBUG_CHANNEL(winlogon);
/* FUNCTIONS ****************************************************************/
@@ -116,7 +99,7 @@
DWORD dwSize;
DWORD dwExitCode;
- DPRINT ("RunSetup() called\n");
+ TRACE ("RunSetup() called\n");
dwError = RegOpenKeyExW (HKEY_LOCAL_MACHINE,
L"SYSTEM\\Setup",
@@ -154,7 +137,7 @@
return FALSE;
}
- DPRINT ("Winlogon: Should run '%S' now.\n", CommandLine);
+ TRACE ("Should run '%S' now.\n", CommandLine);
StartupInfo.cb = sizeof(StartupInfo);
StartupInfo.lpReserved = NULL;
@@ -164,7 +147,7 @@
StartupInfo.cbReserved2 = 0;
StartupInfo.lpReserved2 = 0;
- DPRINT ("Winlogon: Creating new setup process\n");
+ TRACE ("Creating new setup process\n");
Result = CreateProcessW (NULL,
CommandLine,
@@ -178,7 +161,7 @@
&ProcessInformation);
if (!Result)
{
- DPRINT ("Winlogon: Failed to run setup process\n");
+ TRACE ("Failed to run setup process\n");
return FALSE;
}
@@ -195,7 +178,7 @@
SetSetupType (0);
}
- DPRINT ("Winlogon: RunSetup() done.\n");
+ TRACE ("RunSetup() done.\n");
return TRUE;
}
Modified: trunk/reactos/base/system/winlogon/winlogon.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/system/winlogon/winlo…
==============================================================================
--- trunk/reactos/base/system/winlogon/winlogon.c (original)
+++ trunk/reactos/base/system/winlogon/winlogon.c Thu Jul 26 19:13:36 2007
@@ -1,7 +1,7 @@
/*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS Winlogon
- * FILE: services/winlogon/winlogon.c
+ * FILE: base/system/winlogon/winlogon.c
* PURPOSE: Logon
* PROGRAMMERS: Thomas Weidenmueller (w3seek(a)users.sourceforge.net)
* Filip Navara
@@ -9,10 +9,13 @@
*/
/* INCLUDES *****************************************************************/
+
#include "winlogon.h"
//#define YDEBUG
#include <wine/debug.h>
+
+WINE_DEFAULT_DEBUG_CHANNEL(winlogon);
/* GLOBALS ******************************************************************/
@@ -425,7 +428,7 @@
if (!StartLsass())
{
- DPRINT1("WL: Failed to start lsass.exe service (error %lu)\n",
GetLastError());
+ ERR("WL: Failed to start lsass.exe service (error %lu)\n", GetLastError());
NtRaiseHardError(STATUS_SYSTEM_PROCESS_TERMINATED, 0, 0, 0, OptionOk,
&HardErrorResponse);
ExitProcess(1);
}
Modified: trunk/reactos/base/system/winlogon/winlogon.rbuild
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/system/winlogon/winlo…
==============================================================================
--- trunk/reactos/base/system/winlogon/winlogon.rbuild (original)
+++ trunk/reactos/base/system/winlogon/winlogon.rbuild Thu Jul 26 19:13:36 2007
@@ -4,6 +4,7 @@
<include base="winlogon">.</include>
<define name="__USE_W32API" />
<define name="_WIN32_WINNT">0x0501</define>
+ <library>wine</library>
<library>ntdll</library>
<library>kernel32</library>
<library>user32</library>
Modified: trunk/reactos/base/system/winlogon/wlx.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/system/winlogon/wlx.c…
==============================================================================
--- trunk/reactos/base/system/winlogon/wlx.c (original)
+++ trunk/reactos/base/system/winlogon/wlx.c Thu Jul 26 19:13:36 2007
@@ -1,7 +1,7 @@
/*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS Winlogon
- * FILE: services/winlogon/wlx.c
+ * FILE: base/system/winlogon/wlx.c
* PURPOSE: Logon
* PROGRAMMERS: Thomas Weidenmueller (w3seek(a)users.sourceforge.net)
* Ge van Geldorp (gvg(a)reactos.com)
@@ -15,8 +15,14 @@
//#define YDEBUG
#include <wine/debug.h>
+WINE_DEFAULT_DEBUG_CHANNEL(winlogon);
+
+/* GLOBALS ******************************************************************/
+
static DLGPROC PreviousWindowProc;
static UINT_PTR IdTimer;
+
+/* FUNCTIONS ****************************************************************/
static BOOL CALLBACK
DefaultWlxWindowProc(
Modified: trunk/reactos/dll/win32/advapi32/misc/shutdown.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/advapi32/misc/sh…
==============================================================================
--- trunk/reactos/dll/win32/advapi32/misc/shutdown.c (original)
+++ trunk/reactos/dll/win32/advapi32/misc/shutdown.c Thu Jul 26 19:13:36 2007
@@ -11,7 +11,7 @@
*/
#include <advapi32.h>
-#include <wine/debug.h>
+#include <debug.h>
#define USZ {0,0,0}
@@ -150,9 +150,7 @@
DWORD dwTimeout, BOOL bForceAppsClosed, BOOL bRebootAfterShutdown,
DWORD dwReason)
{
- FIXME("%s %s %ld %d %d %ld\n", debugstr_w(lpMachineName),
- debugstr_w(lpMessage), dwTimeout, bForceAppsClosed,
- bRebootAfterShutdown, dwReason);
+ UNIMPLEMENTED;
return TRUE;
}
Modified: trunk/reactos/dll/win32/advapi32/reg/reg.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/advapi32/reg/reg…
==============================================================================
--- trunk/reactos/dll/win32/advapi32/reg/reg.c (original)
+++ trunk/reactos/dll/win32/advapi32/reg/reg.c Thu Jul 26 19:13:36 2007
@@ -16,6 +16,8 @@
#include <advapi32.h>
#define NDEBUG
#include <wine/debug.h>
+
+WINE_DEFAULT_DEBUG_CHANNEL(advapi32);
/* DEFINES ******************************************************************/
@@ -1668,7 +1670,7 @@
LONG WINAPI
RegDisableReflectionKey(IN HKEY hBase)
{
- DPRINT1("RegDisableReflectionKey(0x%p) UNIMPLEMENTED!\n", hBase);
+ FIXME("RegDisableReflectionKey(0x%p) UNIMPLEMENTED!\n", hBase);
return ERROR_CALL_NOT_IMPLEMENTED;
}
@@ -1681,7 +1683,7 @@
LONG WINAPI
RegEnableReflectionKey(IN HKEY hBase)
{
- DPRINT1("RegEnableReflectionKey(0x%p) UNIMPLEMENTED!\n", hBase);
+ FIXME("RegEnableReflectionKey(0x%p) UNIMPLEMENTED!\n", hBase);
return ERROR_CALL_NOT_IMPLEMENTED;
}
@@ -3697,8 +3699,8 @@
RegQueryReflectionKey(IN HKEY hBase,
OUT BOOL* bIsReflectionDisabled)
{
- DPRINT1("RegQueryReflectionKey(0x%p, 0x%p) UNIMPLEMENTED!\n",
- hBase, bIsReflectionDisabled);
+ FIXME("RegQueryReflectionKey(0x%p, 0x%p) UNIMPLEMENTED!\n",
+ hBase, bIsReflectionDisabled);
return ERROR_CALL_NOT_IMPLEMENTED;
}
@@ -4860,8 +4862,8 @@
IN ULONG Reserved,
IN LPCWSTR pszDirectory OPTIONAL)
{
- DPRINT1("RegLoadMUIStringW(0x%p, 0x%p, 0x%p, 0x%x, 0x%x, 0x%p)
UNIMPLEMENTED!\n",
- hKey, pszValue, pszOutBuf, cbOutBuf, Reserved, pszDirectory);
+ FIXME("RegLoadMUIStringW(0x%p, 0x%p, 0x%p, 0x%x, 0x%x, 0x%p)
UNIMPLEMENTED!\n",
+ hKey, pszValue, pszOutBuf, cbOutBuf, Reserved, pszDirectory);
return ERROR_CALL_NOT_IMPLEMENTED;
}
@@ -4879,8 +4881,8 @@
IN ULONG Reserved,
IN LPCSTR pszDirectory OPTIONAL)
{
- DPRINT1("RegLoadMUIStringA(0x%p, 0x%p, 0x%p, 0x%x, 0x%x, 0x%p)
UNIMPLEMENTED!\n",
- hKey, pszValue, pszOutBuf, cbOutBuf, Reserved, pszDirectory);
+ FIXME("RegLoadMUIStringA(0x%p, 0x%p, 0x%p, 0x%x, 0x%x, 0x%p)
UNIMPLEMENTED!\n",
+ hKey, pszValue, pszOutBuf, cbOutBuf, Reserved, pszDirectory);
return ERROR_CALL_NOT_IMPLEMENTED;
}
Modified: trunk/reactos/dll/win32/advapi32/token/token.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/advapi32/token/t…
==============================================================================
--- trunk/reactos/dll/win32/advapi32/token/token.c (original)
+++ trunk/reactos/dll/win32/advapi32/token/token.c Thu Jul 26 19:13:36 2007
@@ -13,6 +13,8 @@
#define NDEBUG
#include <wine/debug.h>
#include <debug.h>
+
+WINE_DEFAULT_DEBUG_CHANNEL(advapi32);
/*
* @implemented
Modified: trunk/reactos/dll/win32/icmp/icmp.rbuild
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/icmp/icmp.rbuild…
==============================================================================
--- trunk/reactos/dll/win32/icmp/icmp.rbuild (original)
+++ trunk/reactos/dll/win32/icmp/icmp.rbuild Thu Jul 26 19:13:36 2007
@@ -4,6 +4,7 @@
<include base="ReactOS">include/reactos/wine</include>
<define name="__USE_W32API" />
<define name="_WIN32_WINNT">0x501</define>
+ <library>wine</library>
<library>kernel32</library>
<library>ws2_32</library>
<library>wine</library>
Modified: trunk/reactos/dll/win32/iphlpapi/ifenum_reactos.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/iphlpapi/ifenum_…
==============================================================================
--- trunk/reactos/dll/win32/iphlpapi/ifenum_reactos.c (original)
+++ trunk/reactos/dll/win32/iphlpapi/ifenum_reactos.c Thu Jul 26 19:13:36 2007
@@ -43,6 +43,8 @@
//#define NDEBUG
#include "debug.h"
+WINE_DEFAULT_DEBUG_CHANNEL(iphlpapi);
+
/* Globals */
const PWCHAR TcpFileName = L"\\Device\\Tcp";
@@ -96,7 +98,7 @@
* string we provided */
if (!NT_SUCCESS(status)) {
- DPRINT1("openTcpFile for <%wZ> failed: 0x%lx\n", &fileName,
status);
+ ERR("openTcpFile for <%wZ> failed: 0x%lx\n", &fileName,
status);
}
return status;
@@ -172,7 +174,7 @@
if(!NT_SUCCESS(status))
{
- DPRINT("IOCTL Failed\n");
+ ERR("IOCTL Failed\n");
return STATUS_UNSUCCESSFUL;
}
@@ -181,7 +183,7 @@
if( !entitySet ) {
status = STATUS_INSUFFICIENT_RESOURCES;
- DPRINT("TdiGetSetOfThings() => %08x\n", (int)status);
+ WARN("TdiGetSetOfThings() => %08x\n", (int)status);
return status;
}
@@ -203,11 +205,11 @@
if(!status)
{
- DPRINT("IOCTL Failed\n");
+ WARN("IOCTL Failed\n");
return STATUS_UNSUCCESSFUL;
}
- DPRINT("TdiGetSetOfThings(): Array changed size: %d -> %d.\n",
+ WARN("TdiGetSetOfThings(): Array changed size: %d -> %d.\n",
arraySize, allocationSizeForEntityArray );
} while( TRUE ); /* We break if the array we received was the size we
* expected. Therefore, we got here because it wasn't */
@@ -215,7 +217,7 @@
*numEntries = (arraySize - fixedPart) / entrySize;
*tdiEntitySet = entitySet;
- DPRINT("TdiGetSetOfThings() => Success: %d things @ %08x\n",
+ WARN("TdiGetSetOfThings() => Success: %d things @ %08x\n",
(int)*numEntries, (int)entitySet);
return STATUS_SUCCESS;
@@ -231,7 +233,7 @@
NTSTATUS status = STATUS_SUCCESS;
DWORD returnSize;
- DPRINT("TdiGetMibForIfEntity(tcpFile %x,entityId %x)\n",
+ WARN("TdiGetMibForIfEntity(tcpFile %x,entityId %x)\n",
(int)tcpFile, (int)ent->tei_instance);
req.ID.toi_class = INFO_CLASS_PROTOCOL;
@@ -250,11 +252,11 @@
if(!status)
{
- DPRINT("IOCTL Failed\n");
+ WARN("IOCTL Failed\n");
return STATUS_UNSUCCESSFUL;
}
- DPRINT("TdiGetMibForIfEntity() => {\n"
+ TRACE("TdiGetMibForIfEntity() => {\n"
" if_index ....................... %x\n"
" if_type ........................ %x\n"
" if_mtu ......................... %d\n"
@@ -265,7 +267,7 @@
entry->ent.if_mtu,
entry->ent.if_speed,
entry->ent.if_physaddrlen);
- DPRINT(" if_physaddr ....................
%02x:%02x:%02x:%02x:%02x:%02x\n"
+ TRACE(" if_physaddr .................... %02x:%02x:%02x:%02x:%02x:%02x\n"
" if_descr ....................... %s\n",
entry->ent.if_physaddr[0] & 0xff,
entry->ent.if_physaddr[1] & 0xff,
@@ -274,7 +276,7 @@
entry->ent.if_physaddr[4] & 0xff,
entry->ent.if_physaddr[5] & 0xff,
entry->ent.if_descr);
- DPRINT("} status %08x\n",status);
+ TRACE("} status %08x\n",status);
return status;
}
@@ -296,7 +298,7 @@
int i;
for( i = 0; i < *numEntities; i++ ) {
- DPRINT("%-4d: %04x:%08x\n",
+ TRACE("%-4d: %04x:%08x\n",
i,
(*entitySet)[i].tei_entity,
(*entitySet)[i].tei_instance );
@@ -328,7 +330,7 @@
NTSTATUS status = STATUS_SUCCESS;
DWORD returnSize;
- DPRINT("TdiGetEntityType(tcpFile %x,entityId %x)\n",
+ TRACE("TdiGetEntityType(tcpFile %x,entityId %x)\n",
(DWORD)tcpFile, ent->tei_instance);
req.ID.toi_class = INFO_CLASS_GENERIC;
@@ -346,7 +348,7 @@
&returnSize,
NULL );
- DPRINT("TdiGetEntityType() => %08x %08x\n", *type, status);
+ TRACE("TdiGetEntityType() => %08x %08x\n", *type, status);
return (status ? STATUS_SUCCESS : STATUS_UNSUCCESSFUL);
}
@@ -386,7 +388,7 @@
int curInterf = 0, i;
if (!NT_SUCCESS(status)) {
- DPRINT1("getInterfaceInfoSet: tdiGetEntityIDSet() failed: 0x%lx\n",
status);
+ ERR("getInterfaceInfoSet: tdiGetEntityIDSet() failed: 0x%lx\n",
status);
return status;
}
@@ -401,7 +403,7 @@
( tcpFile,
&entIDSet[i],
&infoSetInt[curInterf].if_info );
- DPRINT("tdiGetMibForIfEntity: %08x\n", status);
+ TRACE("tdiGetMibForIfEntity: %08x\n", status);
if( NT_SUCCESS(status) ) {
DWORD numAddrs;
IPAddrEntry *addrs;
@@ -414,7 +416,7 @@
status = tdiGetIpAddrsForIpEntity
( tcpFile, &ip_ent, &addrs, &numAddrs );
for( j = 0; j < numAddrs && NT_SUCCESS(status); j++ ) {
- DPRINT("ADDR %d: index %d (target %d)\n", j, addrs[j].iae_index,
infoSetInt[curInterf].if_info.ent.if_index);
+ TRACE("ADDR %d: index %d (target %d)\n", j, addrs[j].iae_index,
infoSetInt[curInterf].if_info.ent.if_index);
if( addrs[j].iae_index ==
infoSetInt[curInterf].if_info.ent.if_index ) {
memcpy( &infoSetInt[curInterf].ip_addr,
@@ -452,14 +454,14 @@
status = openTcpFile( &tcpFile );
if( !NT_SUCCESS(status) ) {
- DPRINT("getNumInterfaces: failed %08x\n", status );
+ WARN("getNumInterfaces: failed %08x\n", status );
return 0;
}
status = tdiGetEntityIDSet( tcpFile, &entitySet, &numEntities );
if( !NT_SUCCESS(status) ) {
- DPRINT("getNumInterfaces: failed %08x\n", status );
+ WARN("getNumInterfaces: failed %08x\n", status );
return 0;
}
@@ -470,7 +472,7 @@
numInterfaces++;
}
- DPRINT("getNumInterfaces: success: %d %d %08x\n",
+ TRACE("getNumInterfaces: success: %d %d %08x\n",
onlyNonLoopback, numInterfaces, status );
closeTcpFile( tcpFile );
@@ -507,7 +509,7 @@
}
}
- DPRINT("Index %d is entity #%d - %04x:%08x\n", index, i,
+ TRACE("Index %d is entity #%d - %04x:%08x\n", index, i,
entitySet[i].tei_entity, entitySet[i].tei_instance );
if( numInterfaces == index && i < numEntities ) {
@@ -619,7 +621,7 @@
if( NT_SUCCESS(status) ) {
status = getInterfaceInfoSet( tcpFile, &ifInfo, &numInterfaces );
- DPRINT("InterfaceInfoSet: %08x, %04x:%08x\n",
+ TRACE("InterfaceInfoSet: %08x, %04x:%08x\n",
status,
ifInfo->entity_id.tei_entity,
ifInfo->entity_id.tei_instance);
@@ -632,13 +634,13 @@
if (ret) {
ret->numAllocated = numInterfaces;
- DPRINT("NumInterfaces = %d\n", numInterfaces);
+ TRACE("NumInterfaces = %d\n", numInterfaces);
for( i = 0; i < numInterfaces; i++ ) {
- DPRINT("Examining interface %d\n", i);
+ TRACE("Examining interface %d\n", i);
if( !nonLoopbackOnly ||
!isLoopback( tcpFile, &ifInfo[i].entity_id ) ) {
- DPRINT("Interface %d matches (%d)\n", i, curInterface);
+ TRACE("Interface %d matches (%d)\n", i, curInterface);
ret->indexes[curInterface++] =
ifInfo[i].if_info.ent.if_index;
}
@@ -678,7 +680,7 @@
getInterfaceInfoByIndex( tcpFile, index, ifInfo );
if (!NT_SUCCESS(status)) {
- DPRINT1("getIPAddrEntryForIf returning %lx\n", status);
+ ERR("getIPAddrEntryForIf returning %lx\n", status);
}
return status;
@@ -797,7 +799,7 @@
IFInfo info;
NTSTATUS status = openTcpFile( &tcpFile );
- DPRINT("Called.\n");
+ TRACE("Called.\n");
if( NT_SUCCESS(status) ) {
status = getInterfaceInfoByName( tcpFile, (char *)name, &info );
@@ -808,7 +810,7 @@
sizeof(info.if_info) );
}
- DPRINT("entry->bDescr = %s\n", entry->bDescr);
+ TRACE("entry->bDescr = %s\n", entry->bDescr);
closeTcpFile( tcpFile );
}
@@ -822,7 +824,7 @@
IFInfo info;
NTSTATUS status = openTcpFile( &tcpFile );
- DPRINT("Called.\n");
+ TRACE("Called.\n");
if( NT_SUCCESS(status) ) {
status = getInterfaceInfoByIndex( tcpFile, index, &info );
@@ -860,7 +862,7 @@
IP_SET_DATA Data;
IO_STATUS_BLOCK Iosb;
- DPRINT("Called.\n");
+ TRACE("Called.\n");
if( !NT_SUCCESS(status) ) return status;
@@ -887,7 +889,7 @@
}
if (!NT_SUCCESS(status)) {
- DPRINT1("addIPAddress for if %d returning 0x%lx\n", IfIndex, status);
+ ERR("addIPAddress for if %d returning 0x%lx\n", IfIndex, status);
}
return status;
@@ -900,7 +902,7 @@
NTSTATUS status = openTcpFile( &tcpFile );
IO_STATUS_BLOCK Iosb;
- DPRINT("Called.\n");
+ TRACE("Called.\n");
if( !NT_SUCCESS(status) ) return status;
@@ -918,7 +920,7 @@
closeTcpFile( tcpFile );
if (!NT_SUCCESS(status)) {
- DPRINT1("deleteIpAddress(%lu) returning 0x%lx\n", NteContext, status);
+ ERR("deleteIpAddress(%lu) returning 0x%lx\n", NteContext, status);
}
return status;
Modified: trunk/reactos/dll/win32/iphlpapi/iphlpapi_main.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/iphlpapi/iphlpap…
==============================================================================
--- trunk/reactos/dll/win32/iphlpapi/iphlpapi_main.c (original)
+++ trunk/reactos/dll/win32/iphlpapi/iphlpapi_main.c Thu Jul 26 19:13:36 2007
@@ -946,7 +946,7 @@
ret = ERROR_INVALID_PARAMETER;
else {
DWORD numNonLoopbackInterfaces = getNumNonLoopbackInterfaces();
- DPRINT("numNonLoopbackInterfaces == 0x%x\n", numNonLoopbackInterfaces);
+ TRACE("numNonLoopbackInterfaces == 0x%x\n", numNonLoopbackInterfaces);
ULONG size = sizeof(IP_INTERFACE_INFO) + (numNonLoopbackInterfaces) *
sizeof(IP_ADAPTER_INDEX_MAP);
@@ -956,7 +956,7 @@
}
else {
InterfaceIndexTable *table = getNonLoopbackInterfaceIndexTable();
- DPRINT("table->numIndexes == 0x%x\n", table->numIndexes);
+ TRACE("table->numIndexes == 0x%x\n", table->numIndexes);
if (table) {
size = sizeof(IP_INTERFACE_INFO) + (table->numIndexes) *
Modified: trunk/reactos/dll/win32/iphlpapi/ipstats_reactos.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/iphlpapi/ipstats…
==============================================================================
--- trunk/reactos/dll/win32/iphlpapi/ipstats_reactos.c (original)
+++ trunk/reactos/dll/win32/iphlpapi/ipstats_reactos.c Thu Jul 26 19:13:36 2007
@@ -26,6 +26,8 @@
#include "ipstats.h"
#include "ifenum.h"
+WINE_DEFAULT_DEBUG_CHANNEL(iphlpapi);
+
#ifndef TCPS_ESTABLISHED
# define TCPS_ESTABLISHED TCP_ESTABLISHED
#endif
@@ -81,7 +83,7 @@
&returnedLen,
NULL );
- DPRINT("Ent: %04x:d -> %04x\n",
+ TRACE("Ent: %04x:d -> %04x\n",
ent->tei_entity, ent->tei_instance, entityType );
return NT_SUCCESS(status) && entityType == CL_NL_IP;
@@ -99,14 +101,14 @@
for( i = 0; i < numEntities; i++ ) {
if( isIpEntity( tcpFile, &entitySet[i] ) ) {
- DPRINT("Entity %d is an IP Entity\n", i);
+ TRACE("Entity %d is an IP Entity\n", i);
if( numRoutes == index ) break;
else numRoutes++;
}
}
if( numRoutes == index && i < numEntities ) {
- DPRINT("Index %d is entity #%d - %04x:%08x\n", index, i,
+ TRACE("Index %d is entity #%d - %04x:%08x\n", index, i,
entitySet[i].tei_entity, entitySet[i].tei_instance );
memcpy( ent, &entitySet[i], sizeof(*ent) );
tdiFreeThingSet( entitySet );
@@ -125,7 +127,7 @@
memset( entry, 0, sizeof( *entry ) );
- DPRINT("TdiGetMibForIpEntity(tcpFile %x,entityId %x)\n",
+ TRACE("TdiGetMibForIpEntity(tcpFile %x,entityId %x)\n",
(DWORD)tcpFile, ent->tei_instance);
req.ID.toi_class = INFO_CLASS_PROTOCOL;
@@ -142,7 +144,7 @@
&returnSize,
NULL );
- DPRINT("TdiGetMibForIpEntity() => {\n"
+ TRACE("TdiGetMibForIpEntity() => {\n"
" ipsi_forwarding ............ %d\n"
" ipsi_defaultttl ............ %d\n"
" ipsi_inreceives ............ %d\n"
@@ -175,7 +177,7 @@
( HANDLE tcpFile, TDIEntityID *ent, IPRouteEntry **routes, PDWORD numRoutes ) {
NTSTATUS status = STATUS_SUCCESS;
- DPRINT("TdiGetRoutesForIpEntity(tcpFile %x,entityId %x)\n",
+ TRACE("TdiGetRoutesForIpEntity(tcpFile %x,entityId %x)\n",
(DWORD)tcpFile, ent->tei_instance);
status = tdiGetSetOfThings( tcpFile,
@@ -196,7 +198,7 @@
( HANDLE tcpFile, TDIEntityID *ent, IPAddrEntry **addrs, PDWORD numAddrs ) {
NTSTATUS status;
- DPRINT("TdiGetIpAddrsForIpEntity(tcpFile %x,entityId %x)\n",
+ TRACE("TdiGetIpAddrsForIpEntity(tcpFile %x,entityId %x)\n",
(DWORD)tcpFile, ent->tei_instance);
status = tdiGetSetOfThings( tcpFile,
@@ -451,7 +453,7 @@
if( !NT_SUCCESS(status) )
return 0;
- DPRINT("GETTING ROUTE TABLE\n");
+ TRACE("GETTING ROUTE TABLE\n");
out_route_table = HeapAlloc( GetProcessHeap(), 0,
sizeof(RouteTable) +
@@ -466,7 +468,7 @@
getNthIpEntity( tcpFile, i, &ent );
tdiGetMibForIpEntity( tcpFile, &ent, &snmpInfo );
- DPRINT( "%d routes in instance %d\n", snmpInfo.ipsi_numroutes, i );
+ TRACE( "%d routes in instance %d\n", snmpInfo.ipsi_numroutes, i );
tdiGetRoutesForIpEntity( tcpFile, &ent, &route_set, &numRoutes );
@@ -476,7 +478,7 @@
return 0;
}
- DPRINT("Route set returned\n");
+ TRACE("Route set returned\n");
#if 0
HexDump( route_set,
sizeof( IPRouteEntry ) *
@@ -502,7 +504,7 @@
routesAdded += snmpInfo.ipsi_numroutes;
}
- DPRINT("Return: %08x, %08x\n", status, out_route_table);
+ TRACE("Return: %08x, %08x\n", status, out_route_table);
return out_route_table;
}
Modified: trunk/reactos/dll/win32/iphlpapi/route_reactos.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/iphlpapi/route_r…
==============================================================================
--- trunk/reactos/dll/win32/iphlpapi/route_reactos.c (original)
+++ trunk/reactos/dll/win32/iphlpapi/route_reactos.c Thu Jul 26 19:13:36 2007
@@ -61,7 +61,7 @@
TDIEntityID id;
DWORD returnSize = 0;
- DPRINT("Called.\n");
+ TRACE("Called.\n");
if( NT_SUCCESS(status) )
status = getNthIpEntity( tcpFile, 0, &id );
@@ -103,7 +103,7 @@
if( tcpFile != INVALID_HANDLE_VALUE )
closeTcpFile( tcpFile );
- DPRINT("Returning: %08x (IOCTL was %08x)\n", status,
IOCTL_TCP_SET_INFORMATION_EX);
+ TRACE("Returning: %08x (IOCTL was %08x)\n", status,
IOCTL_TCP_SET_INFORMATION_EX);
if( NT_SUCCESS(status) )
return NO_ERROR;
@@ -125,7 +125,7 @@
TDIEntityID id;
DWORD returnSize = 0;
- DPRINT("Called.\n");
+ TRACE("Called.\n");
if( NT_SUCCESS(status) )
status = getNthIpEntity( tcpFile, 0, &id );
@@ -167,7 +167,7 @@
if( tcpFile != INVALID_HANDLE_VALUE )
closeTcpFile( tcpFile );
- DPRINT("Returning: %08x (IOCTL was %08x)\n", status,
IOCTL_TCP_SET_INFORMATION_EX);
+ TRACE("Returning: %08x (IOCTL was %08x)\n", status,
IOCTL_TCP_SET_INFORMATION_EX);
if( NT_SUCCESS(status) )
return NO_ERROR;
Modified: trunk/reactos/dll/win32/kernel32/kernel32.rbuild
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/kernel3…
==============================================================================
--- trunk/reactos/dll/win32/kernel32/kernel32.rbuild (original)
+++ trunk/reactos/dll/win32/kernel32/kernel32.rbuild Thu Jul 26 19:13:36 2007
@@ -110,7 +110,7 @@
<directory name="thread">
<directory name="i386">
<file>fiber.S</file>
- <file>thread.S</file>
+ <file>thread.S</file>
</directory>
</directory>
</module>
Modified: trunk/reactos/dll/win32/kernel32/misc/lcformat.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/misc/lc…
==============================================================================
--- trunk/reactos/dll/win32/kernel32/misc/lcformat.c (original)
+++ trunk/reactos/dll/win32/kernel32/misc/lcformat.c Thu Jul 26 19:13:36 2007
@@ -3,7 +3,7 @@
*
* Copyright 1995 Martin von Loewis
* Copyright 1998 David Lee Lambert
- * Copyright 2000 Julio César Gázquez
+ * Copyright 2000 Julio César Gázquez
* Copyright 2003 Jon Griffiths
*
* This library is free software; you can redistribute it and/or
@@ -32,10 +32,12 @@
#include "wine/config.h"
#include "wine/unicode.h"
-#include "wine/debug.h"
-
-
-WINE_DEFAULT_DEBUG_CHANNEL(nls);
+#define NDEBUG
+#include <debug.h>
+
+#define TRACE DPRINT
+#define WARN DPRINT1
+#define FIXME DPRINT1
#define DATE_DATEVARSONLY 0x0100 /* only date stuff: yMdg */
#define TIME_TIMEVARSONLY 0x0200 /* only time stuff: hHmst */
Modified: trunk/reactos/dll/win32/msgina/gui.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/msgina/gui.c?rev…
==============================================================================
--- trunk/reactos/dll/win32/msgina/gui.c (original)
+++ trunk/reactos/dll/win32/msgina/gui.c Thu Jul 26 19:13:36 2007
@@ -9,6 +9,8 @@
//#define YDEBUG
#include <wine/debug.h>
+
+WINE_DEFAULT_DEBUG_CHANNEL(msgina);
typedef struct _DISPLAYSTATUSMSG
{
Modified: trunk/reactos/dll/win32/msgina/msgina.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/msgina/msgina.c?…
==============================================================================
--- trunk/reactos/dll/win32/msgina/msgina.c (original)
+++ trunk/reactos/dll/win32/msgina/msgina.c Thu Jul 26 19:13:36 2007
@@ -28,6 +28,8 @@
//#define YDEBUG
#include <wine/debug.h>
+
+WINE_DEFAULT_DEBUG_CHANNEL(msgina);
extern HINSTANCE hDllInstance;
Modified: trunk/reactos/dll/win32/msgina/msgina.rbuild
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/msgina/msgina.rb…
==============================================================================
--- trunk/reactos/dll/win32/msgina/msgina.rbuild (original)
+++ trunk/reactos/dll/win32/msgina/msgina.rbuild Thu Jul 26 19:13:36 2007
@@ -5,6 +5,7 @@
<define name="__REACTOS__" />
<define name="__USE_W32API" />
<library>ntdll</library>
+ <library>wine</library>
<library>kernel32</library>
<library>advapi32</library>
<library>user32</library>
Modified: trunk/reactos/dll/win32/msgina/tui.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/msgina/tui.c?rev…
==============================================================================
--- trunk/reactos/dll/win32/msgina/tui.c (original)
+++ trunk/reactos/dll/win32/msgina/tui.c Thu Jul 26 19:13:36 2007
@@ -9,6 +9,8 @@
#define YDEBUG
#include <wine/debug.h>
+
+WINE_DEFAULT_DEBUG_CHANNEL(msgina);
static BOOL
TUIInitialize(
Modified: trunk/reactos/dll/win32/newdev/stubs.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/newdev/stubs.c?r…
==============================================================================
--- trunk/reactos/dll/win32/newdev/stubs.c (original)
+++ trunk/reactos/dll/win32/newdev/stubs.c Thu Jul 26 19:13:36 2007
@@ -19,8 +19,6 @@
*/
#include "newdev_private.h"
-
-WINE_DEFAULT_DEBUG_CHANNEL(newdev);
/*
* @unimplemented
Modified: trunk/reactos/dll/win32/rpcrt4/ndr_contexth.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/rpcrt4/ndr_conte…
==============================================================================
--- trunk/reactos/dll/win32/rpcrt4/ndr_contexth.c (original)
+++ trunk/reactos/dll/win32/rpcrt4/ndr_contexth.c Thu Jul 26 19:13:36 2007
@@ -25,6 +25,8 @@
#include "rpc_binding.h"
#include "ndr_contexth.h"
+WINE_DEFAULT_DEBUG_CHANNEL(rpcrt4);
+
static SContextHandle *CtxList = NULL;
static CRITICAL_SECTION CtxList_cs;
Modified: trunk/reactos/dll/win32/shell32/shfldr_fs.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/shell32/shfldr_f…
==============================================================================
--- trunk/reactos/dll/win32/shell32/shfldr_fs.c (original)
+++ trunk/reactos/dll/win32/shell32/shfldr_fs.c Thu Jul 26 19:13:36 2007
@@ -1250,7 +1250,7 @@
PathAddBackslashA (szDstPath);
_ILSimpleGetText (apidl[i], szDstPath + strlen (szDstPath),
MAX_PATH);
- DPRINT1 ("copy %s to %s\n", szSrcPath, szDstPath);
+ TRACE ("copy %s to %s\n", szSrcPath, szDstPath);
if (fileMoving)
{
Modified: trunk/reactos/dll/win32/shell32/shv_bg_cmenu.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/shell32/shv_bg_c…
==============================================================================
--- trunk/reactos/dll/win32/shell32/shv_bg_cmenu.c (original)
+++ trunk/reactos/dll/win32/shell32/shv_bg_cmenu.c Thu Jul 26 19:13:36 2007
@@ -244,7 +244,7 @@
goto fail;
}
- DPRINT1("shortcut point to %s\n", pSrcFile);
+ TRACE("shortcut point to %s\n", pSrcFile);
hres = IShellLinkA_SetPath(psl, pSrcFile);
@@ -270,12 +270,12 @@
hres = IPersistFile_SaveCompleted(pPf, widelink);
IPersistFile_Release(pPf);
IShellLinkA_Release(psl);
- DPRINT1("shortcut %s has been created, result=%08lx\n", pDstFile, hres);
+ TRACE("shortcut %s has been created, result=%08lx\n", pDstFile, hres);
ret = TRUE;
}
else
{
- DPRINT1("CoCreateInstance failed, hres=%08lx\n", hres);
+ ERR("CoCreateInstance failed, hres=%08lx\n", hres);
}
fail:
@@ -330,7 +330,7 @@
IShellFolder_QueryInterface(This->pSFParent, &IID_IPersistFolder2,
(LPVOID*)&ppfdst);
IShellFolder_QueryInterface(psfFrom, &IID_IPersistFolder2,
(LPVOID*)&ppfsrc);
- DPRINT1("[%p,%p]\n",ppfdst,ppfsrc);
+ TRACE("[%p,%p]\n",ppfdst,ppfsrc);
/* do the link/s */
/* hack to get desktop path */
@@ -363,7 +363,7 @@
{
_ILSimpleGetText (apidl[i], filename, MAX_PATH);
- DPRINT1("filename %s\n", filename);
+ TRACE("filename %s\n", filename);
lstrcpyA(linkFilename, szDstPath);
PathAddBackslashA(linkFilename);
@@ -371,13 +371,13 @@
lstrcatA(linkFilename, filename);
lstrcatA(linkFilename, ".lnk");
- DPRINT1("linkFilename %s\n", linkFilename);
+ TRACE("linkFilename %s\n", linkFilename);
lstrcpyA(srcFilename, szSrcPath);
PathAddBackslashA(srcFilename);
lstrcatA(srcFilename, filename);
- DPRINT1("srcFilename %s\n", srcFilename);
+ TRACE("srcFilename %s\n", srcFilename);
ret = DoLink(srcFilename, linkFilename);
Modified: trunk/reactos/dll/win32/user32/controls/button.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/user32/controls/…
==============================================================================
--- trunk/reactos/dll/win32/user32/controls/button.c (original)
+++ trunk/reactos/dll/win32/user32/controls/button.c Thu Jul 26 19:13:36 2007
@@ -66,6 +66,7 @@
#include <user32.h>
#include <wine/debug.h>
+WINE_DEFAULT_DEBUG_CHANNEL(button);
/* GetWindowLong offsets for window extra information */
#define STATE_GWL_OFFSET 0
Modified: trunk/reactos/dll/win32/user32/controls/listbox.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/user32/controls/…
==============================================================================
--- trunk/reactos/dll/win32/user32/controls/listbox.c (original)
+++ trunk/reactos/dll/win32/user32/controls/listbox.c Thu Jul 26 19:13:36 2007
@@ -21,6 +21,8 @@
#include <user32.h>
#include <wine/debug.h>
+WINE_DECLARE_DEBUG_CHANNEL(combo);
+WINE_DEFAULT_DEBUG_CHANNEL(listbox);
/* Start of hack section -------------------------------- */
Modified: trunk/reactos/dll/win32/user32/controls/scrollbar.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/user32/controls/…
==============================================================================
--- trunk/reactos/dll/win32/user32/controls/scrollbar.c (original)
+++ trunk/reactos/dll/win32/user32/controls/scrollbar.c Thu Jul 26 19:13:36 2007
@@ -33,7 +33,7 @@
#include <user32.h>
#include <wine/debug.h>
-
+WINE_DEFAULT_DEBUG_CHANNEL(scrollbar);
/* GLOBAL VARIABLES ***********************************************************/
@@ -729,7 +729,7 @@
WPARAM wParam /* [in] Variable input including enable state */,
LPARAM lParam /* [in] Variable input including input point */)
{
- DPRINT("Wnd=%p wParam=%d lParam=%ld\n", Wnd, wParam, lParam);
+ TRACE("Wnd=%p wParam=%d lParam=%ld\n", Wnd, wParam, lParam);
/* hide caret on first KEYDOWN to prevent flicker */
if (0 == (lParam & PFD_DOUBLEBUFFER_DONTCARE))
@@ -1079,7 +1079,7 @@
Info.nTrackPos = 0;
NtUserSetScrollInfo(Wnd, SB_CTL, &Info, FALSE);
- DPRINT("hwnd=%p lpCreate=%p\n", Wnd, lpCreate);
+ TRACE("hwnd=%p lpCreate=%p\n", Wnd, lpCreate);
#if 0 /* FIXME */
if (lpCreate->style & WS_DISABLED)
@@ -1445,14 +1445,14 @@
case 0x00ed:
case 0x00ee:
case 0x00ef:
- DPRINT("unknown Win32 msg %04x wp=%08x lp=%08lx\n",
+ WARN("unknown Win32 msg %04x wp=%08x lp=%08lx\n",
Msg, wParam, lParam );
break;
default:
if (WM_USER <= Msg)
{
- DPRINT("unknown msg %04x wp=%04x lp=%08lx\n", Msg, wParam,
lParam);
+ WARN("unknown msg %04x wp=%04x lp=%08lx\n", Msg, wParam, lParam);
}
return DefWindowProcW(Wnd, Msg, wParam, lParam );
}
@@ -1503,7 +1503,7 @@
INT STDCALL
GetScrollPos(HWND Wnd, INT Bar)
{
- DPRINT("Wnd=%p Bar=%d\n", Wnd, Bar);
+ TRACE("Wnd=%p Bar=%d\n", Wnd, Bar);
/* Refer SB_CTL requests to the window */
if (SB_CTL == Bar)
@@ -1522,7 +1522,7 @@
BOOL STDCALL
GetScrollRange(HWND Wnd, int Bar, LPINT MinPos, LPINT MaxPos)
{
- DPRINT("Wnd=%x Bar=%d Min=%p Max=%p\n", Wnd, Bar, MinPos, MaxPos);
+ TRACE("Wnd=%x Bar=%d Min=%p Max=%p\n", Wnd, Bar, MinPos, MaxPos);
/* Refer SB_CTL requests to the window */
if (SB_CTL == Bar)
Modified: trunk/reactos/dll/win32/user32/include/user32.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/user32/include/u…
==============================================================================
--- trunk/reactos/dll/win32/user32/include/user32.h (original)
+++ trunk/reactos/dll/win32/user32/include/user32.h Thu Jul 26 19:13:36 2007
@@ -9,6 +9,7 @@
/* INCLUDES ******************************************************************/
/* C Headers */
+#include <assert.h>
#include <stdio.h>
#include <math.h>
Modified: trunk/reactos/dll/win32/user32/misc/desktop.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/user32/misc/desk…
==============================================================================
--- trunk/reactos/dll/win32/user32/misc/desktop.c (original)
+++ trunk/reactos/dll/win32/user32/misc/desktop.c Thu Jul 26 19:13:36 2007
@@ -12,6 +12,7 @@
#include <user32.h>
#include <wine/debug.h>
+WINE_DEFAULT_DEBUG_CHANNEL(user32);
#define DESKTOP_CLASS_ATOM MAKEINTATOMA(32769) /* Desktop */
static LRESULT WINAPI DesktopWndProc( HWND hwnd, UINT message, WPARAM wParam, LPARAM
lParam );
@@ -35,7 +36,7 @@
WINAPI
DesktopWndProc( HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam )
{
- DPRINT1("Desktop Class Atom!\n");
+ FIXME("Desktop Class Atom!\n");
if (message == WM_NCCREATE) return TRUE;
return 0; /* all other messages are ignored */
}
@@ -126,7 +127,7 @@
case SPI_SETSOUNDSENTRY:
{
/* FIXME: Support this accessibility SPI actions */
- DPRINT1("FIXME: Unsupported SPI Code: %lx \n",uiAction );
+ FIXME("FIXME: Unsupported SPI Code: %lx \n",uiAction );
return FALSE;
}
@@ -349,7 +350,7 @@
case SPI_SETSOUNDSENTRY:
{
/* FIXME: Support this accessibility SPI actions */
- DPRINT1("FIXME: Unsupported SPI Code: %lx \n",uiAction );
+ FIXME("FIXME: Unsupported SPI Code: %lx \n",uiAction );
return FALSE;
}
case SPI_GETDESKWALLPAPER:
Modified: trunk/reactos/dll/win32/user32/misc/display.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/user32/misc/disp…
==============================================================================
--- trunk/reactos/dll/win32/user32/misc/display.c (original)
+++ trunk/reactos/dll/win32/user32/misc/display.c Thu Jul 26 19:13:36 2007
@@ -31,6 +31,7 @@
#include <user32.h>
#include <wine/debug.h>
+WINE_DEFAULT_DEBUG_CHANNEL(user32);
#define SIZEOF_DEVMODEA_300 124
#define SIZEOF_DEVMODEA_400 148
@@ -368,7 +369,7 @@
NULL, NULL);
if (res == 0)
{
- DPRINT("WideCharToMultiByte() failed!\n");
+ WARN("WideCharToMultiByte() failed!\n");
return FALSE;
}
}
Modified: trunk/reactos/dll/win32/user32/misc/object.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/user32/misc/obje…
==============================================================================
--- trunk/reactos/dll/win32/user32/misc/object.c (original)
+++ trunk/reactos/dll/win32/user32/misc/object.c Thu Jul 26 19:13:36 2007
@@ -31,6 +31,7 @@
#include <user32.h>
#include <wine/debug.h>
+WINE_DEFAULT_DEBUG_CHANNEL(user32);
/* FUNCTIONS *****************************************************************/
@@ -96,7 +97,7 @@
LPWSTR buffer;
BOOL ret = TRUE;
- DPRINT("GetUserObjectInformationA(%x %d %x %d %x)\n", hObj, nIndex,
+ TRACE("GetUserObjectInformationA(%x %d %x %d %x)\n", hObj, nIndex,
pvInfo, nLength, lpnLengthNeeded);
if (nIndex != UOI_NAME && nIndex != UOI_TYPE)
@@ -143,7 +144,7 @@
DWORD nLength,
LPDWORD lpnLengthNeeded)
{
- DPRINT("GetUserObjectInformationW(%x %d %x %d %x)\n", hObj, nIndex,
+ TRACE("GetUserObjectInformationW(%x %d %x %d %x)\n", hObj, nIndex,
pvInfo, nLength, lpnLengthNeeded);
return NtUserGetObjectInformation(hObj, nIndex, pvInfo, nLength, lpnLengthNeeded);
}
Modified: trunk/reactos/dll/win32/user32/windows/bitmap.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/user32/windows/b…
==============================================================================
--- trunk/reactos/dll/win32/user32/windows/bitmap.c (original)
+++ trunk/reactos/dll/win32/user32/windows/bitmap.c Thu Jul 26 19:13:36 2007
@@ -31,6 +31,7 @@
#include <user32.h>
#include <wine/debug.h>
+WINE_DEFAULT_DEBUG_CHANNEL(user32);
#include "pshpack1.h"
@@ -600,7 +601,7 @@
if (flags & LR_COPYFROMRESOURCE)
{
- DPRINT1("FIXME: The flag LR_COPYFROMRESOURCE is not implemented for
bitmaps\n");
+ FIXME("FIXME: The flag LR_COPYFROMRESOURCE is not implemented for
bitmaps\n");
}
if (desiredx == 0) desiredx = ds.dsBm.bmWidth;
@@ -771,7 +772,7 @@
/* FIXME: support loading the image as shared from an instance */
if (!IconMsgDisplayed)
{
- DPRINT("FIXME: CopyImage doesn't support IMAGE_ICON
correctly!\n");
+ FIXME("FIXME: CopyImage doesn't support IMAGE_ICON
correctly!\n");
IconMsgDisplayed = TRUE;
}
return CopyIcon(hnd);
@@ -784,13 +785,13 @@
/* FIXME: support loading the image as shared from an instance */
if (!IconMsgDisplayed)
{
- DPRINT("FIXME: CopyImage doesn't support IMAGE_CURSOR
correctly!\n");
+ FIXME("FIXME: CopyImage doesn't support IMAGE_CURSOR
correctly!\n");
IconMsgDisplayed = TRUE;
}
/* Should call CURSORICON_ExtCopy but more testing
* needs to be done before we change this
*/
- if (flags) DPRINT1("FIXME: Flags are ignored\n");
+ if (flags) FIXME("FIXME: Flags are ignored\n");
return CopyCursor(hnd);
}
}
Modified: trunk/reactos/dll/win32/user32/windows/class.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/user32/windows/c…
==============================================================================
--- trunk/reactos/dll/win32/user32/windows/class.c (original)
+++ trunk/reactos/dll/win32/user32/windows/class.c Thu Jul 26 19:13:36 2007
@@ -12,6 +12,7 @@
#include <user32.h>
#include <wine/debug.h>
+WINE_DEFAULT_DEBUG_CHANNEL(user32);
extern BOOL ControlsInitialized;
@@ -442,12 +443,12 @@
SmallIconHeight = GetSystemMetrics(SM_CYSMICON);
if (! GetIconInfo(StdIcon, &StdInfo))
{
- DPRINT1("Failed to get icon info for icon 0x%x\n", StdIcon);
+ ERR("Failed to get icon info for icon 0x%x\n", StdIcon);
goto cleanup;
}
if (! GetObjectW(StdInfo.hbmMask, sizeof(BITMAP), &StdBitmapInfo))
{
- DPRINT1("Failed to get bitmap info for icon 0x%x bitmap 0x%x\n",
+ ERR("Failed to get bitmap info for icon 0x%x bitmap 0x%x\n",
StdIcon, StdInfo.hbmColor);
goto cleanup;
}
@@ -464,71 +465,71 @@
hInfoDc = CreateICW(NULL, NULL, NULL, NULL);
if (NULL == hInfoDc)
{
- DPRINT1("Failed to create info DC\n");
+ ERR("Failed to create info DC\n");
goto cleanup;
}
hSourceDc = CreateCompatibleDC(NULL);
if (NULL == hSourceDc)
{
- DPRINT1("Failed to create source DC\n");
+ ERR("Failed to create source DC\n");
goto cleanup;
}
hDestDc = CreateCompatibleDC(NULL);
if (NULL == hDestDc)
{
- DPRINT1("Failed to create dest DC\n");
+ ERR("Failed to create dest DC\n");
goto cleanup;
}
OldSourceBitmap = SelectObject(hSourceDc, StdInfo.hbmColor);
if (NULL == OldSourceBitmap)
{
- DPRINT1("Failed to select source color bitmap\n");
+ ERR("Failed to select source color bitmap\n");
goto cleanup;
}
SmallInfo.hbmColor = CreateCompatibleBitmap(hInfoDc, SmallIconWidth,
SmallIconHeight);
if (NULL == SmallInfo.hbmColor)
{
- DPRINT1("Failed to create color bitmap\n");
+ ERR("Failed to create color bitmap\n");
goto cleanup;
}
OldDestBitmap = SelectObject(hDestDc, SmallInfo.hbmColor);
if (NULL == OldDestBitmap)
{
- DPRINT1("Failed to select dest color bitmap\n");
+ ERR("Failed to select dest color bitmap\n");
goto cleanup;
}
if (! StretchBlt(hDestDc, 0, 0, SmallIconWidth, SmallIconHeight,
hSourceDc, 0, 0, StdBitmapInfo.bmWidth,
StdBitmapInfo.bmHeight, SRCCOPY))
{
- DPRINT1("Failed to stretch color bitmap\n");
+ ERR("Failed to stretch color bitmap\n");
goto cleanup;
}
if (NULL == SelectObject(hSourceDc, StdInfo.hbmMask))
{
- DPRINT1("Failed to select source mask bitmap\n");
+ ERR("Failed to select source mask bitmap\n");
goto cleanup;
}
SmallInfo.hbmMask = CreateBitmap(SmallIconWidth, SmallIconHeight, 1, 1,
NULL);
if (NULL == SmallInfo.hbmMask)
{
- DPRINT1("Failed to create mask bitmap\n");
+ ERR("Failed to create mask bitmap\n");
goto cleanup;
}
if (NULL == SelectObject(hDestDc, SmallInfo.hbmMask))
{
- DPRINT1("Failed to select dest mask bitmap\n");
+ ERR("Failed to select dest mask bitmap\n");
goto cleanup;
}
if (! StretchBlt(hDestDc, 0, 0, SmallIconWidth, SmallIconHeight,
hSourceDc, 0, 0, StdBitmapInfo.bmWidth,
StdBitmapInfo.bmHeight, SRCCOPY))
{
- DPRINT1("Failed to stretch mask bitmap\n");
+ ERR("Failed to stretch mask bitmap\n");
goto cleanup;
}
@@ -538,7 +539,7 @@
SmallIcon = CreateIconIndirect(&SmallInfo);
if (NULL == SmallIcon)
{
- DPRINT1("Failed to create icon\n");
+ ERR("Failed to create icon\n");
goto cleanup;
}
Modified: trunk/reactos/dll/win32/user32/windows/clipboard.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/user32/windows/c…
==============================================================================
--- trunk/reactos/dll/win32/user32/windows/clipboard.c (original)
+++ trunk/reactos/dll/win32/user32/windows/clipboard.c Thu Jul 26 19:13:36 2007
@@ -17,6 +17,7 @@
#define NDEBUG
#include <wine/debug.h>
+WINE_DEFAULT_DEBUG_CHANNEL(user32);
#define QUERY_SIZE 0
@@ -343,7 +344,7 @@
}
else
{
- DPRINT1("SetClipboardData failed\n");
+ ERR("SetClipboardData failed\n");
}
return ret;
Modified: trunk/reactos/dll/win32/user32/windows/defwnd.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/user32/windows/d…
==============================================================================
--- trunk/reactos/dll/win32/user32/windows/defwnd.c (original)
+++ trunk/reactos/dll/win32/user32/windows/defwnd.c Thu Jul 26 19:13:36 2007
@@ -14,6 +14,7 @@
#include <user32.h>
#include <wine/debug.h>
+WINE_DEFAULT_DEBUG_CHANNEL(user32);
#ifndef WM_SETVISIBLE
#define WM_SETVISIBLE 9
@@ -964,7 +965,7 @@
(uFlags & PRF_OWNED) ||
(uFlags & PRF_NONCLIENT) )
{
- DPRINT1("WM_PRINT message with unsupported flags\n");
+ FIXME("WM_PRINT message with unsupported flags\n");
}
/*
@@ -1688,7 +1689,7 @@
case WM_IME_ENDCOMPOSITION:
case WM_IME_SELECT:
case WM_IME_SETCONTEXT:
- DPRINT1("FIXME: WM_IME_* conversion isn't implemented yet!");
+ FIXME("FIXME: WM_IME_* conversion isn't implemented yet!");
/* fall through */
default:
Result = User32DefWindowProc(hWnd, Msg, wParam, lParam, FALSE);
@@ -1764,7 +1765,7 @@
case WM_IME_SETCONTEXT:
{
/* FIXME */
- DPRINT1("FIXME: WM_IME_SETCONTEXT is not implemented!");
+ FIXME("FIXME: WM_IME_SETCONTEXT is not implemented!");
Result = 0;
break;
}
Modified: trunk/reactos/dll/win32/user32/windows/dialog.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/user32/windows/d…
==============================================================================
--- trunk/reactos/dll/win32/user32/windows/dialog.c (original)
+++ trunk/reactos/dll/win32/user32/windows/dialog.c Thu Jul 26 19:13:36 2007
@@ -34,6 +34,7 @@
#include <user32.h>
#include <wine/debug.h>
+WINE_DEFAULT_DEBUG_CHANNEL(user32);
/* MACROS/DEFINITIONS ********************************************************/
@@ -1182,7 +1183,7 @@
((attrib & DDL_POSTMSGS) ? PostMessageW( hwnd, msg, wparam, lparam ) \
: SendMessageW( hwnd, msg, wparam, lparam ))
-// DPRINT("%p '%s' %d %d %04x\n",
+// TRACE("%p '%s' %d %d %04x\n",
// hDlg, spec ? spec : "NULL", idLBox, idStatic, attrib );
/* If the path exists and is a directory, chdir to it */
@@ -1206,7 +1207,7 @@
}
}
- DPRINT( "mask=%s\n", spec );
+ TRACE( "mask=%s\n", spec );
if (idLBox && ((hwnd = GetDlgItem( hDlg, idLBox )) != 0))
{
@@ -1287,7 +1288,7 @@
BOOL ret;
HWND listbox = GetDlgItem( hwnd, id );
- DPRINT("%p '%s' %d\n", hwnd, str, id );
+ TRACE("%p '%s' %d\n", hwnd, str, id );
if (!listbox) return FALSE;
item = SendMessageW(listbox, combo ? CB_GETCURSEL : LB_GETCURSEL, 0, 0 );
@@ -1322,7 +1323,7 @@
}
else lstrcpynW( str, ptr, len );
HeapFree( GetProcessHeap(), 0, buffer );
- DPRINT("Returning %d '%s'\n", ret, str );
+ TRACE("Returning %d '%s'\n", ret, str );
return ret;
}
Modified: trunk/reactos/dll/win32/user32/windows/icon.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/user32/windows/i…
==============================================================================
--- trunk/reactos/dll/win32/user32/windows/icon.c (original)
+++ trunk/reactos/dll/win32/user32/windows/icon.c Thu Jul 26 19:13:36 2007
@@ -31,7 +31,7 @@
#include <user32.h>
#include <wine/debug.h>
-
+WINE_DEFAULT_DEBUG_CHANNEL(user32);
/* FUNCTIONS *****************************************************************/
@@ -242,7 +242,7 @@
}
*/
- DPRINT("dwVersion, cxDesired, cyDesired are all ignored in this
implementation!\n");
+ TRACE("dwVersion, cxDesired, cyDesired are all ignored in this
implementation!\n");
if (! fIcon)
{
@@ -505,7 +505,7 @@
}
}
- DPRINT("Best Icon: ResId: %d, bits : %d\n", BestEntry, BestBits);
+ TRACE("Best Icon: ResId: %d, bits : %d\n", BestEntry, BestBits);
return BestEntry;
}
@@ -561,7 +561,7 @@
}
}
- DPRINT("Best Cursor: ResId: %d, bits : %d\n", BestEntry, BestBits);
+ TRACE("Best Cursor: ResId: %d, bits : %d\n", BestEntry, BestBits);
return BestEntry;
}
@@ -678,7 +678,7 @@
retVal = entry->nID;
}
else
- DPRINT1("%s() : Invalid resource directory\n", __FUNCTION__);
+ WARN("%s() : Invalid resource directory\n", __FUNCTION__);
return retVal;
}
Modified: trunk/reactos/dll/win32/user32/windows/input.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/user32/windows/i…
==============================================================================
--- trunk/reactos/dll/win32/user32/windows/input.c (original)
+++ trunk/reactos/dll/win32/user32/windows/input.c Thu Jul 26 19:13:36 2007
@@ -31,7 +31,7 @@
#include <user32.h>
#include <wine/debug.h>
-
+WINE_DEFAULT_DEBUG_CHANNEL(user32);
/* GLOBALS *******************************************************************/
Modified: trunk/reactos/dll/win32/user32/windows/menu.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/user32/windows/m…
==============================================================================
--- trunk/reactos/dll/win32/user32/windows/menu.c (original)
+++ trunk/reactos/dll/win32/user32/windows/menu.c Thu Jul 26 19:13:36 2007
@@ -14,6 +14,7 @@
#include <user32.h>
#include <wine/debug.h>
+WINE_DEFAULT_DEBUG_CHANNEL(user32);
/* internal popup menu window messages */
#define MM_SETMENUHANDLE (WM_USER + 0)
@@ -363,7 +364,7 @@
case (INT_PTR) HBMMENU_POPUP_MAXIMIZE:
case (INT_PTR) HBMMENU_POPUP_MINIMIZE:
default:
- DPRINT("Magic menu bitmap not implemented\n");
+ FIXME("Magic menu bitmap not implemented\n");
return;
}
}
@@ -474,7 +475,7 @@
case (INT_PTR) HBMMENU_POPUP_MAXIMIZE:
case (INT_PTR) HBMMENU_POPUP_MINIMIZE:
default:
- DPRINT("Magic menu bitmap not implemented\n");
+ FIXME("Magic menu bitmap not implemented\n");
return;
}
InflateRect(&r, -1, -1);
@@ -606,7 +607,7 @@
dis.hwndItem = (HWND) MenuInfo->Self;
dis.hDC = Dc;
dis.rcItem = Rect;
- DPRINT("Ownerdraw: owner=%p itemID=%d, itemState=%d, itemAction=%d, "
+ TRACE("Ownerdraw: owner=%p itemID=%d, itemState=%d, itemAction=%d, "
"hwndItem=%p, hdc=%p, rcItem={%ld,%ld,%ld,%ld}\n", Wnd,
dis.itemID, dis.itemState, dis.itemAction, dis.hwndItem,
dis.hDC, dis.rcItem.left, dis.rcItem.top, dis.rcItem.right,
@@ -629,7 +630,7 @@
return;
}
- DPRINT("rect={%ld,%ld,%ld,%ld}\n", Item->Rect.left, Item->Rect.top,
+ TRACE("rect={%ld,%ld,%ld,%ld}\n", Item->Rect.left, Item->Rect.top,
Item->Rect.right, Item->Rect.bottom);
if (MenuBar && 0 != (Item->fType & MF_SEPARATOR))
@@ -887,7 +888,7 @@
ROSMENUITEMINFO ItemInfo;
UINT u;
- DPRINT("wnd=%x dc=%x menu=%x\n", Wnd, Dc, Menu);
+ TRACE("wnd=%x dc=%x menu=%x\n", Wnd, Dc, Menu);
GetClientRect(Wnd, &Rect);
@@ -935,7 +936,7 @@
static LRESULT WINAPI
PopupMenuWndProcW(HWND Wnd, UINT Message, WPARAM wParam, LPARAM lParam)
{
- DPRINT("hwnd=%x msg=0x%04x wp=0x%04x lp=0x%08lx\n", Wnd, Message, wParam,
lParam);
+ TRACE("hwnd=%x msg=0x%04x wp=0x%04x lp=0x%08lx\n", Wnd, Message, wParam,
lParam);
switch(Message)
{
@@ -1192,7 +1193,7 @@
INT itemheight = 0;
UINT CheckBitmapWidth = GetSystemMetrics(SM_CXMENUCHECK);
- DPRINT("dc=%x owner=%x (%d,%d)\n", Dc, WndOwner, OrgX, OrgY);
+ TRACE("dc=%x owner=%x (%d,%d)\n", Dc, WndOwner, OrgX, OrgY);
MenuCharSize.cx = GdiGetCharDimensions( Dc, NULL, &MenuCharSize.cy );
@@ -1231,7 +1232,7 @@
ItemInfo->Rect.bottom += mis.itemHeight;
}
- DPRINT("id=%04x size=%dx%d\n", ItemInfo->wID, mis.itemWidth,
mis.itemHeight);
+ TRACE("id=%04x size=%dx%d\n", ItemInfo->wID, mis.itemWidth,
mis.itemHeight);
return;
}
@@ -1350,7 +1351,7 @@
itemheight = max( itemheight, GetSystemMetrics(SM_CYMENU)-1);
}
ItemInfo->Rect.bottom += itemheight;
- DPRINT("(%ld,%ld)-(%ld,%ld)\n", ItemInfo->Rect.left,
ItemInfo->Rect.top, ItemInfo->Rect.right, ItemInfo->Rect.bottom);
+ TRACE("(%ld,%ld)-(%ld,%ld)\n", ItemInfo->Rect.left, ItemInfo->Rect.top,
ItemInfo->Rect.right, ItemInfo->Rect.bottom);
}
/***********************************************************************
@@ -1478,7 +1479,7 @@
return;
}
- DPRINT("left=%ld top=%ld right=%ld bottom=%ld\n",
+ TRACE("left=%ld top=%ld right=%ld bottom=%ld\n",
Rect->left, Rect->top, Rect->right, Rect->bottom);
MenuInfo->Width = Rect->right - Rect->left;
MenuInfo->Height = 0;
@@ -1513,7 +1514,7 @@
break;
}
- DPRINT("calling MENU_CalcItemSize org=(%d, %d)\n", OrgX, OrgY);
+ TRACE("calling MENU_CalcItemSize org=(%d, %d)\n", OrgX, OrgY);
MenuCalcItemSize(Dc, &ItemInfo, MenuInfo, WndOwner, OrgX, OrgY, TRUE);
if (! MenuSetRosMenuItemInfo(MenuInfo->Self, i, &ItemInfo))
{
@@ -1644,7 +1645,7 @@
return GetSystemMetrics(SM_CYMENU);
}
- DPRINT("(%x, %x, %p, %x, %x)\n", Wnd, DC, Rect, Menu, Font);
+ TRACE("(%x, %x, %p, %x, %x)\n", Wnd, DC, Rect, Menu, Font);
FontOld = SelectObject(DC, Font);
@@ -1727,7 +1728,7 @@
static BOOL FASTCALL
MenuInitTracking(HWND Wnd, HMENU Menu, BOOL Popup, UINT Flags)
{
- DPRINT("Wnd=%p Menu=%p\n", Wnd, Menu);
+ TRACE("Wnd=%p Menu=%p\n", Wnd, Menu);
HideCaret(0);
@@ -1783,7 +1784,7 @@
ROSMENUITEMINFO ItemInfo;
UINT Width, Height;
- DPRINT("owner=%x hmenu=%x id=0x%04x x=0x%04x y=0x%04x xa=0x%04x
ya=0x%04x\n",
+ TRACE("owner=%x hmenu=%x id=0x%04x x=0x%04x y=0x%04x xa=0x%04x ya=0x%04x\n",
WndOwner, Menu, Id, X, Y, XAnchor, YAnchor);
if (! MenuGetRosMenuInfo(&MenuInfo, Menu))
@@ -1934,7 +1935,7 @@
ROSMENUINFO TopMenuInfo;
int Pos;
- DPRINT("owner=%x menu=%p index=0x%04x select=0x%04x\n", WndOwner, MenuInfo,
Index, SendMenuSelect);
+ TRACE("owner=%x menu=%p index=0x%04x select=0x%04x\n", WndOwner, MenuInfo,
Index, SendMenuSelect);
if (NULL == MenuInfo || 0 == MenuInfo->MenuItemCount || NULL == MenuInfo->Wnd)
{
@@ -2038,7 +2039,7 @@
ROSMENUITEMINFO ItemInfo;
INT OrigPos;
- DPRINT("hwnd=%x menu=%x off=0x%04x\n", WndOwner, MenuInfo, Offset);
+ TRACE("hwnd=%x menu=%x off=0x%04x\n", WndOwner, MenuInfo, Offset);
/* Prevent looping */
if (0 == MenuInfo->MenuItemCount || 0 == Offset)
@@ -2165,7 +2166,7 @@
HDC Dc;
HMENU Ret;
- DPRINT("owner=%x menu=%p 0x%04x\n", WndOwner, MenuInfo, SelectFirst);
+ TRACE("owner=%x menu=%p 0x%04x\n", WndOwner, MenuInfo, SelectFirst);
if (NO_SELECTED_ITEM == MenuInfo->FocusedItem)
{
@@ -2286,7 +2287,7 @@
ROSMENUINFO SubMenuInfo;
ROSMENUITEMINFO ItemInfo;
- DPRINT("owner=%x menu=%x 0x%04x\n", WndOwner, MenuInfo, SendMenuSelect);
+ TRACE("owner=%x menu=%x 0x%04x\n", WndOwner, MenuInfo, SendMenuSelect);
if (NULL != MenuInfo && NULL != TopPopup && NO_SELECTED_ITEM !=
MenuInfo->FocusedItem)
{
@@ -2323,7 +2324,7 @@
{
ROSMENUINFO TopMenuInfo;
- DPRINT("%x menu=%x 0x%04x\n", Mt, PtMenuInfo->Self, Index);
+ TRACE("%x menu=%x 0x%04x\n", Mt, PtMenuInfo->Self, Index);
if (MenuGetRosMenuInfo(&TopMenuInfo, Mt->TopMenu) &&
Mt->TopMenu != PtMenuInfo->Self &&
@@ -2358,7 +2359,7 @@
ROSMENUITEMINFO ItemInfo;
UINT wID;
- DPRINT("%p menu=%p\n", Mt, MenuInfo);
+ TRACE("%p menu=%p\n", Mt, MenuInfo);
if (0 == MenuInfo->MenuItemCount || NO_SELECTED_ITEM == MenuInfo->FocusedItem)
{
@@ -2372,7 +2373,7 @@
return -1;
}
- DPRINT("%p %08x %p\n", MenuInfo, ItemInfo.wID, ItemInfo.hSubMenu);
+ TRACE("%p %08x %p\n", MenuInfo, ItemInfo.wID, ItemInfo.hSubMenu);
if (0 == (ItemInfo.fType & MF_POPUP))
{
@@ -2424,7 +2425,7 @@
ROSMENUINFO MenuInfo;
ROSMENUITEMINFO Item;
- DPRINT("%x PtMenu=%p\n", Mt, PtMenu);
+ TRACE("%x PtMenu=%p\n", Mt, PtMenu);
if (NULL != PtMenu)
{
@@ -2487,7 +2488,7 @@
ROSMENUINFO MenuInfo;
ROSMENUITEMINFO ItemInfo;
- DPRINT("%p hmenu=%x\n", Mt, PtMenu);
+ TRACE("%p hmenu=%x\n", Mt, PtMenu);
if (NULL != PtMenu)
{
@@ -2720,7 +2721,7 @@
}
MenuCleanupAllRosMenuItemInfo(MenuItems);
- DPRINT("ret %d.\n", i );
+ TRACE("ret %d.\n", i );
return i;
}
@@ -2787,7 +2788,7 @@
NextMenu.hwndNext = NULL;
SendMessageW(Mt->OwnerWnd, WM_NEXTMENU, Vk, (LPARAM) &NextMenu);
- DPRINT("%p [%p] -> %p [%p]\n",
+ TRACE("%p [%p] -> %p [%p]\n",
Mt->CurrentMenu, Mt->OwnerWnd, NextMenu.hmenuNext, NextMenu.hwndNext
);
if (NULL == NextMenu.hmenuNext || NULL == NextMenu.hwndNext)
@@ -2843,7 +2844,7 @@
/* FIXME: Not sure what to do here;
* perhaps try to track NewMenu as a popup? */
- DPRINT(" -- got confused.\n");
+ WARN(" -- got confused.\n");
return FALSE;
}
}
@@ -3046,7 +3047,7 @@
ROSMENUINFO CurrentMenuInfo;
UINT NextCol;
- DPRINT("MenuKeyRight called, cur %p, top %p.\n",
+ TRACE("MenuKeyRight called, cur %p, top %p.\n",
Mt->CurrentMenu, Mt->TopMenu);
if (! MenuGetRosMenuInfo(&MenuInfo, Mt->TopMenu))
@@ -3078,7 +3079,7 @@
/* Check to see if there's another column */
if (NO_SELECTED_ITEM != (NextCol = MenuGetStartOfNextColumn(&CurrentMenuInfo)))
{
- DPRINT("Going to %d.\n", NextCol);
+ TRACE("Going to %d.\n", NextCol);
if (MenuGetRosMenuInfo(&MenuInfo, Mt->CurrentMenu))
{
MenuSelectItem(Mt->OwnerWnd, &MenuInfo, NextCol, TRUE, 0);
@@ -3131,7 +3132,7 @@
LRESULT MenuChar;
UINT i;
- DPRINT("\tlooking for '%c' (0x%02x) in [%p]\n", (char) Key, Key,
MenuInfo);
+ TRACE("\tlooking for '%c' (0x%02x) in [%p]\n", (char) Key, Key,
MenuInfo);
if (NULL == MenuInfo || ! IsMenu(MenuInfo->Self))
{
@@ -3212,7 +3213,7 @@
Mt.Pt.x = x;
Mt.Pt.y = y;
- DPRINT("Menu=%x Flags=0x%08x (%d,%d) Wnd=%x (%ld,%ld)-(%ld,%ld)\n",
+ TRACE("Menu=%x Flags=0x%08x (%d,%d) Wnd=%x (%ld,%ld)-(%ld,%ld)\n",
Menu, Flags, x, y, Wnd, Rect ? Rect->left : 0, Rect ? Rect->top : 0,
Rect ? Rect->right : 0, Rect ? Rect->bottom : 0);
@@ -3560,7 +3561,7 @@
static BOOL FASTCALL
MenuExitTracking(HWND Wnd)
{
- DPRINT("hwnd=%p\n", Wnd);
+ TRACE("hwnd=%p\n", Wnd);
SendMessageW(Wnd, WM_EXITMENULOOP, 0, 0);
ShowCaret(0);
@@ -3574,7 +3575,7 @@
HMENU Menu = (HTSYSMENU == Ht) ? NtUserGetSystemMenu(Wnd, FALSE) : GetMenu(Wnd);
UINT Flags = TPM_ENTERIDLEEX | TPM_BUTTONDOWN | TPM_LEFTALIGN | TPM_LEFTBUTTON;
- DPRINT("wnd=%p ht=0x%04x (%ld,%ld)\n", Wnd, Ht, Pt.x, Pt.y);
+ TRACE("wnd=%p ht=0x%04x (%ld,%ld)\n", Wnd, Ht, Pt.x, Pt.y);
if (IsMenu(Menu))
{
@@ -3600,7 +3601,7 @@
ROSMENUINFO MenuInfo;
UINT wFlags = TPM_ENTERIDLEEX | TPM_LEFTALIGN | TPM_LEFTBUTTON;
- DPRINT("hwnd %p wParam 0x%04x wChar 0x%04x\n", hWnd, wParam, wChar);
+ TRACE("hwnd %p wParam 0x%04x wChar 0x%04x\n", hWnd, wParam, wChar);
/* find window that has a menu */
@@ -3857,7 +3858,7 @@
mi.cbSize = sizeof(MENUINFO);
- DPRINT("CheckMenuRadioItem\n");
+ TRACE("CheckMenuRadioItem\n");
if(idFirst > idLast) return ret;
Modified: trunk/reactos/dll/win32/user32/windows/message.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/user32/windows/m…
==============================================================================
--- trunk/reactos/dll/win32/user32/windows/message.c (original)
+++ trunk/reactos/dll/win32/user32/windows/message.c Thu Jul 26 19:13:36 2007
@@ -11,6 +11,7 @@
#include <user32.h>
#include <wine/debug.h>
+WINE_DEFAULT_DEBUG_CHANNEL(user32);
/* DDE message exchange
*
@@ -1143,7 +1144,7 @@
if (WndProc == NULL)
{
- DPRINT("IntCallWindowsProcW() called with WndProc = NULL!\n");
+ WARN("IntCallWindowsProcW() called with WndProc = NULL!\n");
return FALSE;
}
@@ -1185,7 +1186,7 @@
if (WndProc == NULL)
{
- DPRINT("IntCallWindowsProcA() called with WndProc = NULL!\n");
+ WARN("IntCallWindowsProcA() called with WndProc = NULL!\n");
return FALSE;
}
Modified: trunk/reactos/dll/win32/user32/windows/window.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/user32/windows/w…
==============================================================================
--- trunk/reactos/dll/win32/user32/windows/window.c (original)
+++ trunk/reactos/dll/win32/user32/windows/window.c Thu Jul 26 19:13:36 2007
@@ -14,6 +14,7 @@
#include <user32.h>
#include <wine/debug.h>
+WINE_DEFAULT_DEBUG_CHANNEL(user32);
BOOL ControlsInitialized = FALSE;
@@ -30,7 +31,7 @@
{
PSENDASYNCPROC_CALLBACK_ARGUMENTS CallbackArgs;
- DPRINT("User32CallSendAsyncProcKernel()\n");
+ TRACE("User32CallSendAsyncProcKernel()\n");
CallbackArgs = (PSENDASYNCPROC_CALLBACK_ARGUMENTS)Arguments;
if (ArgumentLength != sizeof(WINDOWPROC_CALLBACK_ARGUMENTS))
{
@@ -303,7 +304,7 @@
{
if (dwStyle & WS_POPUP)
{
- DPRINT1("WS_POPUP with MDIS_ALLCHILDSTYLES is not allowed\n");
+ WARN("WS_POPUP with MDIS_ALLCHILDSTYLES is not allowed\n");
return(0);
}
dwStyle |= (WS_CHILD | WS_CLIPSIBLINGS);
@@ -322,7 +323,7 @@
/* Restore current maximized child */
if((dwStyle & WS_VISIBLE) && IsZoomed(top_child))
{
- DPRINT("Restoring current maximized child %p\n", top_child);
+ TRACE("Restoring current maximized child %p\n", top_child);
SendMessageW( top_child, WM_SETREDRAW, FALSE, 0 );
ShowWindow(top_child, SW_RESTORE);
SendMessageW( top_child, WM_SETREDRAW, TRUE, 0 );
@@ -415,7 +416,7 @@
{
if (dwStyle & WS_POPUP)
{
- DPRINT1("WS_POPUP with MDIS_ALLCHILDSTYLES is not allowed\n");
+ WARN("WS_POPUP with MDIS_ALLCHILDSTYLES is not allowed\n");
return(0);
}
dwStyle |= (WS_CHILD | WS_CLIPSIBLINGS);
@@ -434,7 +435,7 @@
/* Restore current maximized child */
if((dwStyle & WS_VISIBLE) && IsZoomed(top_child))
{
- DPRINT("Restoring current maximized child %p\n", top_child);
+ TRACE("Restoring current maximized child %p\n", top_child);
SendMessageW( top_child, WM_SETREDRAW, FALSE, 0 );
ShowWindow(top_child, SW_RESTORE);
SendMessageW( top_child, WM_SETREDRAW, TRUE, 0 );
Modified: trunk/reactos/dll/win32/user32/windows/winpos.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/user32/windows/w…
==============================================================================
--- trunk/reactos/dll/win32/user32/windows/winpos.c (original)
+++ trunk/reactos/dll/win32/user32/windows/winpos.c Thu Jul 26 19:13:36 2007
@@ -14,6 +14,7 @@
#include <user32.h>
#include <wine/debug.h>
+WINE_DEFAULT_DEBUG_CHANNEL(user32);
/* FUNCTIONS *****************************************************************/
Modified: trunk/reactos/dll/win32/winspool/winspool.rbuild
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/winspool/winspoo…
==============================================================================
--- trunk/reactos/dll/win32/winspool/winspool.rbuild (original)
+++ trunk/reactos/dll/win32/winspool/winspool.rbuild Thu Jul 26 19:13:36 2007
@@ -1,4 +1,4 @@
-<module name="winspool" type="win32dll" extension=".drv"
baseaddress="${BASEADDRESS_WINSPOOL}" installbase="system32"
installname="winspool.drv">
+<module name="winspool" type="win32dll" extension=".drv"
baseaddress="${BASEADDRESS_WINSPOOL}" installbase="system32"
installname="winspool.drv" allowwarnings="true">
<importlibrary definition="winspool.def" />
<include base="winspool">.</include>
<define name="__USE_W32API" />
Modified: trunk/reactos/lib/sdk/crt/wine/heap.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/sdk/crt/wine/heap.c?re…
==============================================================================
--- trunk/reactos/lib/sdk/crt/wine/heap.c (original)
+++ trunk/reactos/lib/sdk/crt/wine/heap.c Thu Jul 26 19:13:36 2007
@@ -27,9 +27,7 @@
#include <stdlib.h>
#include <internal/mtdll.h>
-#include "wine/debug.h"
-
-WINE_DEFAULT_DEBUG_CHANNEL(msvcrt);
+#include <debug.h>
/* MT */
#define LOCK_HEAP _mlock( _HEAP_LOCK )
@@ -48,7 +46,7 @@
void* MSVCRT_operator_new(unsigned long size)
{
void *retval = malloc(size);
- TRACE("(%ld) returning %p\n", size, retval);
+ DPRINT("(%ld) returning %p\n", size, retval);
LOCK_HEAP;
if(!retval && MSVCRT_new_handler)
(*MSVCRT_new_handler)(size);
@@ -61,7 +59,7 @@
*/
void MSVCRT_operator_delete(void *mem)
{
- TRACE("(%p)\n", mem);
+ DPRINT("(%p)\n", mem);
free(mem);
}
@@ -101,7 +99,7 @@
*/
MSVCRT_new_handler_func MSVCRT_set_new_handler(void *func)
{
- TRACE("(%p)\n",func);
+ DPRINT("(%p)\n",func);
MSVCRT__set_new_handler(NULL);
return NULL;
}
@@ -124,7 +122,7 @@
*/
int _heapadd(void* mem, size_t size)
{
- TRACE("(%p,%d) unsupported in Win32\n", mem,size);
+ DPRINT("(%p,%d) unsupported in Win32\n", mem,size);
*_errno() = ENOSYS;
return -1;
}
Modified: trunk/reactos/lib/sdk/crt/wine/thread.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/sdk/crt/wine/thread.c?…
==============================================================================
--- trunk/reactos/lib/sdk/crt/wine/thread.c (original)
+++ trunk/reactos/lib/sdk/crt/wine/thread.c Thu Jul 26 19:13:36 2007
@@ -24,9 +24,7 @@
#include <malloc.h>
#include <process.h>
-#include "wine/debug.h"
-
-WINE_DEFAULT_DEBUG_CHANNEL(msvcrt);
+#include <debug.h>
void _amsg_exit (int errnum);
/* Index to TLS */
@@ -92,7 +90,7 @@
{
_beginthread_trampoline_t* trampoline;
- TRACE("(%p, %d, %p)\n", start_address, stack_size, arglist);
+ DPRINT("(%p, %d, %p)\n", start_address, stack_size, arglist);
/* Allocate the trampoline here so that it is still valid when the thread
* starts... typically after this function has returned.
Modified: trunk/reactos/lib/sdk/crt/wine/undname.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/sdk/crt/wine/undname.c…
==============================================================================
--- trunk/reactos/lib/sdk/crt/wine/undname.c (original)
+++ trunk/reactos/lib/sdk/crt/wine/undname.c Thu Jul 26 19:13:36 2007
@@ -22,6 +22,7 @@
#include "wine/config.h"
#include "wine/port.h"
+#include <assert.h>
#include <stdarg.h>
#include "windef.h"
Modified: trunk/reactos/subsystems/win32/win32k/ntuser/class.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/nt…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/ntuser/class.c (original)
+++ trunk/reactos/subsystems/win32/win32k/ntuser/class.c Thu Jul 26 19:13:36 2007
@@ -30,8 +30,11 @@
#include <w32k.h>
-//#define YDEBUG
-#include <wine/debug.h>
+#define NDEBUG
+#include <debug.h>
+#define TRACE DPRINT
+#define WARN DPRINT1
+#define ERR DPRINT1
/* WINDOWCLASS ***************************************************************/
Modified: trunk/reactos/subsystems/win32/win32k/ntuser/desktop.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/nt…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/ntuser/desktop.c (original)
+++ trunk/reactos/subsystems/win32/win32k/ntuser/desktop.c Thu Jul 26 19:13:36 2007
@@ -31,8 +31,11 @@
#include <w32k.h>
-//#define YDEBUG
-#include <wine/debug.h>
+#define NDEBUG
+#include <debug.h>
+#define TRACE DPRINT
+#define WARN DPRINT1
+#define ERR DPRINT1
static
VOID