Author: gedmurphy
Date: Tue Nov 13 16:16:17 2007
New Revision: 30419
URL:
http://svn.reactos.org/svn/reactos?rev=30419&view=rev
Log:
fix remaining warnings and add it to the build
Modified:
trunk/reactos/base/applications/applications.rbuild
trunk/reactos/base/applications/mstsc/pstcache.c
trunk/reactos/base/applications/mstsc/win32.c
Modified: trunk/reactos/base/applications/applications.rbuild
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/applicat…
==============================================================================
--- trunk/reactos/base/applications/applications.rbuild (original)
+++ trunk/reactos/base/applications/applications.rbuild Tue Nov 13 16:16:17 2007
@@ -34,6 +34,9 @@
<directory name="mscutils">
<xi:include href="mscutils/directory.rbuild" />
</directory>
+<directory name="mstsc">
+ <xi:include href="mstsc/mstsc.rbuild" />
+</directory>
<directory name="network">
<xi:include href="network/network.rbuild" />
</directory>
Modified: trunk/reactos/base/applications/mstsc/pstcache.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mstsc/ps…
==============================================================================
--- trunk/reactos/base/applications/mstsc/pstcache.c (original)
+++ trunk/reactos/base/applications/mstsc/pstcache.c Tue Nov 13 16:16:17 2007
@@ -53,7 +53,7 @@
{
uint8 *celldata;
int fd;
- CELLHEADER cellhdr = {0,};
+ CELLHEADER cellhdr;
HBITMAP bitmap;
if (!g_bitmap_cache_persist_enable)
@@ -61,6 +61,8 @@
if (!IS_PERSISTENT(cache_id) || cache_idx >= BMPCACHE2_NUM_PSTCELLS)
return False;
+
+ memset(&cellhdr, 0, sizeof(CELLHEADER));
fd = g_pstcache_fd[cache_id];
rd_lseek_file(fd, cache_idx * (g_pstcache_Bpp * MAX_CELL_SIZE + sizeof(CELLHEADER)));
Modified: trunk/reactos/base/applications/mstsc/win32.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mstsc/wi…
==============================================================================
--- trunk/reactos/base/applications/mstsc/win32.c (original)
+++ trunk/reactos/base/applications/mstsc/win32.c Tue Nov 13 16:16:17 2007
@@ -92,7 +92,7 @@
len = _tcslen(size1);
for (i = 0; i < len; i++)
{
- sizex[i] = (char *)size1[i];
+ sizex[i] = (char)size1[i];
}
sizex[len] = 0;
}