[ros-diffs] [dgorbachev] 37829: Silence compiler warnings (7/11).

dgorbachev at svn.reactos.org dgorbachev at svn.reactos.org
Wed Dec 3 18:33:14 CET 2008


Author: dgorbachev
Date: Wed Dec  3 11:33:13 2008
New Revision: 37829

URL: http://svn.reactos.org/svn/reactos?rev=37829&view=rev
Log:
Silence compiler warnings (7/11).

Modified:
    trunk/reactos/dll/cpl/console/colors.c
    trunk/reactos/dll/cpl/console/layout.c
    trunk/reactos/dll/cpl/main/mouse.c
    trunk/reactos/dll/cpl/timedate/ntpclient.c
    trunk/reactos/dll/ntdll/rtl/version.c
    trunk/reactos/dll/win32/kernel32/file/dir.c
    trunk/reactos/dll/win32/kernel32/file/file.c
    trunk/reactos/dll/win32/kernel32/file/mailslot.c
    trunk/reactos/dll/win32/kernel32/file/npipe.c
    trunk/reactos/dll/win32/kernel32/file/volume.c
    trunk/reactos/dll/win32/kernel32/misc/muldiv.c
    trunk/reactos/dll/win32/kernel32/misc/profile.c
    trunk/reactos/dll/win32/kernel32/misc/time.c
    trunk/reactos/dll/win32/kernel32/process/procsup.c
    trunk/reactos/dll/win32/kernel32/thread/tls.c
    trunk/reactos/dll/win32/netcfgx/netcfg_iface.c
    trunk/reactos/dll/win32/netcfgx/tcpipconf_notify.c
    trunk/reactos/dll/win32/netshell/connectmanager.c
    trunk/reactos/dll/win32/netshell/lanconnectui.c
    trunk/reactos/dll/win32/netshell/shfldr_netconnect.c
    trunk/reactos/dll/win32/opengl32/opengl32.c
    trunk/reactos/dll/win32/userenv/directory.c
    trunk/reactos/dll/win32/userenv/profile.c
    trunk/reactos/dll/win32/userenv/setup.c

Modified: trunk/reactos/dll/cpl/console/colors.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/console/colors.c?rev=37829&r1=37828&r2=37829&view=diff
==============================================================================
--- trunk/reactos/dll/cpl/console/colors.c [iso-8859-1] (original)
+++ trunk/reactos/dll/cpl/console/colors.c [iso-8859-1] Wed Dec  3 11:33:13 2008
@@ -116,7 +116,7 @@
 				break;
 			}
 
-			if (red == -1)
+			if (red == -1U)
 			{
 				red = SendMessage(GetDlgItem(hwndDlg, IDC_UPDOWN_COLOR_RED), UDM_GETPOS, 0, 0);
 				if (HIWORD(red))
@@ -127,7 +127,7 @@
 				red = LOBYTE(red);
 			}
 
-			if (green == -1)
+			if (green == -1U)
 			{
 				green = SendMessage(GetDlgItem(hwndDlg, IDC_UPDOWN_COLOR_GREEN), UDM_GETPOS, 0, 0);
 				if (HIWORD(green))
@@ -138,7 +138,7 @@
 				green = LOBYTE(green);
 			}
 
-			if (blue == -1)
+			if (blue == -1U)
 			{
 				blue = SendMessage(GetDlgItem(hwndDlg, IDC_UPDOWN_COLOR_BLUE), UDM_GETPOS, 0, 0);
 				if (HIWORD(blue))

Modified: trunk/reactos/dll/cpl/console/layout.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/console/layout.c?rev=37829&r1=37828&r2=37829&view=diff
==============================================================================
--- trunk/reactos/dll/cpl/console/layout.c [iso-8859-1] (original)
+++ trunk/reactos/dll/cpl/console/layout.c [iso-8859-1] Wed Dec  3 11:33:13 2008
@@ -160,7 +160,7 @@
 			SendMessage(GetDlgItem(hwndDlg, IDC_UPDOWN_WINDOW_POS_LEFT), UDM_SETRANGE, 0, (LPARAM)MAKELONG(xres, 0));
 			SendMessage(GetDlgItem(hwndDlg, IDC_UPDOWN_WINDOW_POS_TOP), UDM_SETRANGE, 0, (LPARAM)MAKELONG(yres, 0));
 
-			if (pConInfo->WindowPosition != -1)
+			if (pConInfo->WindowPosition != -1U)
 			{
 				SetDlgItemInt(hwndDlg, IDC_EDIT_WINDOW_POS_LEFT, LOWORD(pConInfo->WindowPosition), FALSE);
 				SetDlgItemInt(hwndDlg, IDC_EDIT_WINDOW_POS_TOP, HIWORD(pConInfo->WindowPosition), FALSE);

Modified: trunk/reactos/dll/cpl/main/mouse.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/main/mouse.c?rev=37829&r1=37828&r2=37829&view=diff
==============================================================================
--- trunk/reactos/dll/cpl/main/mouse.c [iso-8859-1] (original)
+++ trunk/reactos/dll/cpl/main/mouse.c [iso-8859-1] Wed Dec  3 11:33:13 2008
@@ -969,7 +969,7 @@
                    GetSysColor(COLOR_WINDOWTEXT));
     }
 
-    if (lpdis->itemID != -1)
+    if (lpdis->itemID != -1U)
     {
         CopyRect(&rc, &lpdis->rcItem);
         rc.left += 5;

Modified: trunk/reactos/dll/cpl/timedate/ntpclient.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/timedate/ntpclient.c?rev=37829&r1=37828&r2=37829&view=diff
==============================================================================
--- trunk/reactos/dll/cpl/timedate/ntpclient.c [iso-8859-1] (original)
+++ trunk/reactos/dll/cpl/timedate/ntpclient.c [iso-8859-1] Wed Dec  3 11:33:13 2008
@@ -75,7 +75,7 @@
 static BOOL
 SendData(PINFO pInfo)
 {
-    TIMEPACKET tp = {0,};
+    TIMEPACKET tp = { 0, 0 };
     INT Ret;
 
     ZeroMemory(&pInfo->SendPacket, sizeof(pInfo->SendPacket));

Modified: trunk/reactos/dll/ntdll/rtl/version.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/ntdll/rtl/version.c?rev=37829&r1=37828&r2=37829&view=diff
==============================================================================
--- trunk/reactos/dll/ntdll/rtl/version.c [iso-8859-1] (original)
+++ trunk/reactos/dll/ntdll/rtl/version.c [iso-8859-1] Wed Dec  3 11:33:13 2008
@@ -104,7 +104,7 @@
 NTSTATUS NTAPI
 RtlGetVersion(RTL_OSVERSIONINFOW *Info)
 {
-   ULONG i, MaxLength;
+   LONG i, MaxLength;
 
    if (Info->dwOSVersionInfoSize == sizeof(RTL_OSVERSIONINFOW) ||
        Info->dwOSVersionInfoSize == sizeof(RTL_OSVERSIONINFOEXW))

Modified: trunk/reactos/dll/win32/kernel32/file/dir.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/file/dir.c?rev=37829&r1=37828&r2=37829&view=diff
==============================================================================
--- trunk/reactos/dll/win32/kernel32/file/dir.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/kernel32/file/dir.c [iso-8859-1] Wed Dec  3 11:33:13 2008
@@ -830,10 +830,10 @@
         LPSTR   *lpFilePart
         )
 {
-        UNICODE_STRING PathU = {0};
-        UNICODE_STRING FileNameU = {0};
-        UNICODE_STRING ExtensionU = {0};
-        UNICODE_STRING BufferU = {0};
+        UNICODE_STRING PathU      = { 0, 0, NULL };
+        UNICODE_STRING FileNameU  = { 0, 0, NULL };
+        UNICODE_STRING ExtensionU = { 0, 0, NULL };
+        UNICODE_STRING BufferU    = { 0, 0, NULL };
         ANSI_STRING Path;
         ANSI_STRING FileName;
         ANSI_STRING Extension;

Modified: trunk/reactos/dll/win32/kernel32/file/file.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/file/file.c?rev=37829&r1=37828&r2=37829&view=diff
==============================================================================
--- trunk/reactos/dll/win32/kernel32/file/file.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/kernel32/file/file.c [iso-8859-1] Wed Dec  3 11:33:13 2008
@@ -479,7 +479,7 @@
         *lpDistanceToMoveHigh = FilePosition.CurrentByteOffset.u.HighPart;
      }
 
-   if (FilePosition.CurrentByteOffset.u.LowPart == -1)
+   if (FilePosition.CurrentByteOffset.u.LowPart == -1U)
      {
        /* The value of -1 is valid here, especially when the new
           file position is greater than 4 GB. Since NtSetInformationFile

Modified: trunk/reactos/dll/win32/kernel32/file/mailslot.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/file/mailslot.c?rev=37829&r1=37828&r2=37829&view=diff
==============================================================================
--- trunk/reactos/dll/win32/kernel32/file/mailslot.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/kernel32/file/mailslot.c [iso-8859-1] Wed Dec  3 11:33:13 2008
@@ -165,7 +165,7 @@
    if (lpReadTimeout != NULL)
      {
 	if (Buffer.ReadTimeout.LowPart == 0 &&
-	    Buffer.ReadTimeout.HighPart == 0x80000000)
+	    Buffer.ReadTimeout.HighPart == (LONG)0x80000000)
 	    *lpReadTimeout = MAILSLOT_WAIT_FOREVER;
 	else
 	    *lpReadTimeout = (DWORD)(Buffer.ReadTimeout.QuadPart / -10000);

Modified: trunk/reactos/dll/win32/kernel32/file/npipe.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/file/npipe.c?rev=37829&r1=37828&r2=37829&view=diff
==============================================================================
--- trunk/reactos/dll/win32/kernel32/file/npipe.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/kernel32/file/npipe.c [iso-8859-1] Wed Dec  3 11:33:13 2008
@@ -952,7 +952,7 @@
                          LPSTR lpUserName,
                          DWORD nMaxUserNameSize)
 {
-    UNICODE_STRING UserNameW = {0};
+    UNICODE_STRING UserNameW = { 0, 0, NULL };
     ANSI_STRING UserNameA;
     BOOL Ret;
 

Modified: trunk/reactos/dll/win32/kernel32/file/volume.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/file/volume.c?rev=37829&r1=37828&r2=37829&view=diff
==============================================================================
--- trunk/reactos/dll/win32/kernel32/file/volume.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/kernel32/file/volume.c [iso-8859-1] Wed Dec  3 11:33:13 2008
@@ -495,7 +495,7 @@
 	)
 {
   UNICODE_STRING FileSystemNameU;
-  UNICODE_STRING VolumeNameU = {0};
+  UNICODE_STRING VolumeNameU = { 0, 0, NULL };
   ANSI_STRING VolumeName;
   ANSI_STRING FileSystemName;
   PWCHAR RootPathNameW;

Modified: trunk/reactos/dll/win32/kernel32/misc/muldiv.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/misc/muldiv.c?rev=37829&r1=37828&r2=37829&view=diff
==============================================================================
--- trunk/reactos/dll/win32/kernel32/misc/muldiv.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/kernel32/misc/muldiv.c [iso-8859-1] Wed Dec  3 11:33:13 2008
@@ -53,7 +53,7 @@
         /* Do the sign changes */
         if ((LONG)Result.LowPart >= 0)
         {
-            return (Negative >= 0) ? Result.LowPart : -(LONG)Result.LowPart;
+            return (Negative >= 0) ? (LONG)Result.LowPart : -(LONG)Result.LowPart;
         }
     }
  

Modified: trunk/reactos/dll/win32/kernel32/misc/profile.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/misc/profile.c?rev=37829&r1=37828&r2=37829&view=diff
==============================================================================
--- trunk/reactos/dll/win32/kernel32/misc/profile.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/kernel32/misc/profile.c [iso-8859-1] Wed Dec  3 11:33:13 2008
@@ -76,7 +76,7 @@
 {
     0, 0, &PROFILE_CritSect,
     { &critsect_debug.ProcessLocksList, &critsect_debug.ProcessLocksList },
-      0, 0, 0, 0
+      0, 0, 0, 0, 0
 };
 static RTL_CRITICAL_SECTION PROFILE_CritSect = { &critsect_debug, -1, 0, 0, 0, 0 };
 

Modified: trunk/reactos/dll/win32/kernel32/misc/time.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/misc/time.c?rev=37829&r1=37828&r2=37829&view=diff
==============================================================================
--- trunk/reactos/dll/win32/kernel32/misc/time.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/kernel32/misc/time.c [iso-8859-1] Wed Dec  3 11:33:13 2008
@@ -250,7 +250,7 @@
 {
    PDOSTIME  pdtime=(PDOSTIME) lpFatTime;
    PDOSDATE  pddate=(PDOSDATE) lpFatDate;
-   SYSTEMTIME SystemTime = { 0 };
+   SYSTEMTIME SystemTime = { 0, 0, 0, 0, 0, 0, 0, 0 };
 
    if ( lpFileTime == NULL )
 		return FALSE;

Modified: trunk/reactos/dll/win32/kernel32/process/procsup.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/process/procsup.c?rev=37829&r1=37828&r2=37829&view=diff
==============================================================================
--- trunk/reactos/dll/win32/kernel32/process/procsup.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/kernel32/process/procsup.c [iso-8859-1] Wed Dec  3 11:33:13 2008
@@ -639,7 +639,7 @@
     BOOLEAN FoundQuotes = FALSE;
     BOOLEAN QuotesNeeded = FALSE;
     BOOLEAN CmdLineIsAppName = FALSE;
-    UNICODE_STRING ApplicationName = {0};
+    UNICODE_STRING ApplicationName = { 0, 0, NULL };
     OBJECT_ATTRIBUTES LocalObjectAttributes;
     POBJECT_ATTRIBUTES ObjectAttributes;
     HANDLE hSection = NULL, hProcess = NULL, hThread = NULL, hDebug = NULL;

Modified: trunk/reactos/dll/win32/kernel32/thread/tls.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/thread/tls.c?rev=37829&r1=37828&r2=37829&view=diff
==============================================================================
--- trunk/reactos/dll/win32/kernel32/thread/tls.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/kernel32/thread/tls.c [iso-8859-1] Wed Dec  3 11:33:13 2008
@@ -31,11 +31,11 @@
 
     /* Try to get regular TEB slot. */
     Index = RtlFindClearBitsAndSet(NtCurrentPeb()->TlsBitmap, 1, 0);
-    if (Index == ~0)
+    if (Index == ~0U)
     {
         /* If it fails, try to find expansion TEB slot. */
         Index = RtlFindClearBitsAndSet(NtCurrentPeb()->TlsExpansionBitmap, 1, 0);
-        if (Index != ~0)
+        if (Index != ~0U)
         {
             if (NtCurrentTeb()->TlsExpansionSlots == NULL)
             {

Modified: trunk/reactos/dll/win32/netcfgx/netcfg_iface.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/netcfgx/netcfg_iface.c?rev=37829&r1=37828&r2=37829&view=diff
==============================================================================
--- trunk/reactos/dll/win32/netcfgx/netcfg_iface.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/netcfgx/netcfg_iface.c [iso-8859-1] Wed Dec  3 11:33:13 2008
@@ -14,7 +14,7 @@
     NetCfgComponentItem * pProtocol;
 } INetCfgImpl, *LPINetCfgImpl;
 
-static LPINetCfgImpl __inline impl_from_INetCfgLock(INetCfgLock *iface)
+static __inline LPINetCfgImpl impl_from_INetCfgLock(INetCfgLock *iface)
 {
     return (INetCfgImpl*)((char *)iface - FIELD_OFFSET(INetCfgImpl, lpVtblLock));
 }

Modified: trunk/reactos/dll/win32/netcfgx/tcpipconf_notify.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/netcfgx/tcpipconf_notify.c?rev=37829&r1=37828&r2=37829&view=diff
==============================================================================
--- trunk/reactos/dll/win32/netcfgx/tcpipconf_notify.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/netcfgx/tcpipconf_notify.c [iso-8859-1] Wed Dec  3 11:33:13 2008
@@ -107,7 +107,7 @@
     UINT MaxNum;
 }TcpipPortSettings;
 
-static LPTcpipConfNotifyImpl __inline impl_from_INetCfgComponentControl(INetCfgComponentControl *iface)
+static __inline LPTcpipConfNotifyImpl impl_from_INetCfgComponentControl(INetCfgComponentControl *iface)
 {
     return (TcpipConfNotifyImpl*)((char *)iface - FIELD_OFFSET(TcpipConfNotifyImpl, lpVtblCompControl));
 }

Modified: trunk/reactos/dll/win32/netshell/connectmanager.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/netshell/connectmanager.c?rev=37829&r1=37828&r2=37829&view=diff
==============================================================================
--- trunk/reactos/dll/win32/netshell/connectmanager.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/netshell/connectmanager.c [iso-8859-1] Wed Dec  3 11:33:13 2008
@@ -26,7 +26,7 @@
 } INetConnectionImpl, *LPINetConnectionImpl;
 
 
-static LPINetConnectionManagerImpl __inline impl_from_EnumNetConnection(IEnumNetConnection *iface)
+static __inline LPINetConnectionManagerImpl impl_from_EnumNetConnection(IEnumNetConnection *iface)
 {
     return (LPINetConnectionManagerImpl)((char *)iface - FIELD_OFFSET(INetConnectionManagerImpl, lpVtblNetConnection));
 }

Modified: trunk/reactos/dll/win32/netshell/lanconnectui.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/netshell/lanconnectui.c?rev=37829&r1=37828&r2=37829&view=diff
==============================================================================
--- trunk/reactos/dll/win32/netshell/lanconnectui.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/netshell/lanconnectui.c [iso-8859-1] Wed Dec  3 11:33:13 2008
@@ -32,12 +32,12 @@
     LONG ref;
 }INetConnectionPropertyUiImpl, *LPINetConnectionPropertyUiImpl;
 
-static LPINetConnectionPropertyUiImpl __inline impl_from_NetLanConnectionUiInfo(INetLanConnectionUiInfo *iface)
+static __inline LPINetConnectionPropertyUiImpl impl_from_NetLanConnectionUiInfo(INetLanConnectionUiInfo *iface)
 {
     return (LPINetConnectionPropertyUiImpl)((char *)iface - FIELD_OFFSET(INetConnectionPropertyUiImpl, lpLanConUiInfoVtbl));
 }
 
-static LPINetConnectionPropertyUiImpl __inline impl_from_NetConnectionConnectUi(INetConnectionConnectUi *iface)
+static __inline LPINetConnectionPropertyUiImpl impl_from_NetConnectionConnectUi(INetConnectionConnectUi *iface)
 {
     return (LPINetConnectionPropertyUiImpl)((char *)iface - FIELD_OFFSET(INetConnectionPropertyUiImpl, lpNetConnectionConnectUi));
 }

Modified: trunk/reactos/dll/win32/netshell/shfldr_netconnect.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/netshell/shfldr_netconnect.c?rev=37829&r1=37828&r2=37829&view=diff
==============================================================================
--- trunk/reactos/dll/win32/netshell/shfldr_netconnect.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/netshell/shfldr_netconnect.c [iso-8859-1] Wed Dec  3 11:33:13 2008
@@ -79,28 +79,28 @@
 static const IQueryInfoVtbl vt_QueryInfo;
 static const IExtractIconWVtbl vt_ExtractIconW;
 
-static LPIContextMenuImpl __inline impl_from_IExtractIcon(IExtractIconW *iface)
+static __inline LPIContextMenuImpl impl_from_IExtractIcon(IExtractIconW *iface)
 {
     return (LPIContextMenuImpl)((char *)iface - FIELD_OFFSET(IContextMenuImpl, lpVtblExtractIconW));
 }
 
 
-static LPIContextMenuImpl __inline impl_from_IObjectWithSite(IObjectWithSite *iface)
+static __inline LPIContextMenuImpl impl_from_IObjectWithSite(IObjectWithSite *iface)
 {
     return (LPIContextMenuImpl)((char *)iface - FIELD_OFFSET(IContextMenuImpl, lpVtblObjectWithSite));
 }
 
-static LPIGenericSFImpl __inline impl_from_IPersistFolder2(IPersistFolder2 *iface)
+static __inline LPIGenericSFImpl impl_from_IPersistFolder2(IPersistFolder2 *iface)
 {
     return (LPIGenericSFImpl)((char *)iface - FIELD_OFFSET(IGenericSFImpl, lpVtblPersistFolder2));
 }
 
-static LPIGenericSFImpl __inline impl_from_IShellExecuteHookW(IShellExecuteHookW *iface)
+static __inline LPIGenericSFImpl impl_from_IShellExecuteHookW(IShellExecuteHookW *iface)
 {
     return (LPIGenericSFImpl)((char *)iface - FIELD_OFFSET(IGenericSFImpl, lpVtblShellExecuteHookW));
 }
 
-static LPIContextMenuImpl __inline impl_from_IQueryInfo(IQueryInfo *iface)
+static __inline LPIContextMenuImpl impl_from_IQueryInfo(IQueryInfo *iface)
 {
     return (LPIContextMenuImpl)((char *)iface - FIELD_OFFSET(IContextMenuImpl, lpVtblQueryInfo));
 }

Modified: trunk/reactos/dll/win32/opengl32/opengl32.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/opengl32/opengl32.c?rev=37829&r1=37828&r2=37829&view=diff
==============================================================================
--- trunk/reactos/dll/win32/opengl32/opengl32.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/opengl32/opengl32.c [iso-8859-1] Wed Dec  3 11:33:13 2008
@@ -21,7 +21,7 @@
 
 /* global vars */
 /* Do not assume it have the free value -1 set, any value can be in here */
-DWORD OPENGL32_tls = -1;
+DWORD OPENGL32_tls = -1U;
 GLPROCESSDATA OPENGL32_processdata;
 
 
@@ -103,7 +103,7 @@
 	                               TRUE /* bInheritHandle */ };
 
 	OPENGL32_tls = TlsAlloc();
-	if (-1 == OPENGL32_tls)
+	if (-1U == OPENGL32_tls)
 		return FALSE;
 
 	memset( &OPENGL32_processdata, 0, sizeof (OPENGL32_processdata) );
@@ -179,7 +179,7 @@
 		CloseHandle( OPENGL32_processdata.dcdata_mutex );
 
 	/* free TLS */
-	if (OPENGL32_tls != -1)
+	if (OPENGL32_tls != -1U)
 		TlsFree(OPENGL32_tls);
 }
 

Modified: trunk/reactos/dll/win32/userenv/directory.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/userenv/directory.c?rev=37829&r1=37828&r2=37829&view=diff
==============================================================================
--- trunk/reactos/dll/win32/userenv/directory.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/userenv/directory.c [iso-8859-1] Wed Dec  3 11:33:13 2008
@@ -169,7 +169,7 @@
 
   FindClose (hFind);
 
-  DPRINT ("Copy Directory() done\n");
+  DPRINT ("CopyDirectory() done\n");
 
   return TRUE;
 }

Modified: trunk/reactos/dll/win32/userenv/profile.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/userenv/profile.c?rev=37829&r1=37828&r2=37829&view=diff
==============================================================================
--- trunk/reactos/dll/win32/userenv/profile.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/userenv/profile.c [iso-8859-1] Wed Dec  3 11:33:13 2008
@@ -912,7 +912,7 @@
     DWORD UserNameLength = 0, DomainLength = 0;
     PTOKEN_USER UserSid = NULL;
     SID_NAME_USE AccountType;
-    UNICODE_STRING SidString = { 0, };
+    UNICODE_STRING SidString = { 0, 0, NULL };
     LONG Error;
     BOOL ret = FALSE;
     DWORD dwLength = sizeof(szUserHivePath) / sizeof(szUserHivePath[0]);

Modified: trunk/reactos/dll/win32/userenv/setup.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/userenv/setup.c?rev=37829&r1=37828&r2=37829&view=diff
==============================================================================
--- trunk/reactos/dll/win32/userenv/setup.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/userenv/setup.c [iso-8859-1] Wed Dec  3 11:33:13 2008
@@ -114,6 +114,8 @@
   HKEY hKey;
   LONG Error;
 
+  DPRINT("InitializeProfiles()\n");
+
   /* Load profiles directory path */
   if (!LoadStringW(hInstance,
 		  IDS_PROFILEPATH,



More information about the Ros-diffs mailing list