Author: cwittich
Date: Mon May 25 13:16:39 2009
New Revision: 41110
URL:
http://svn.reactos.org/svn/reactos?rev=41110&view=rev
Log:
sync msvcrt winetest to wine 1.1.22
Modified:
trunk/rostests/winetests/msvcrt/data.c
trunk/rostests/winetests/msvcrt/heap.c
Modified: trunk/rostests/winetests/msvcrt/data.c
URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/winetests/msvcrt/data.c?r…
==============================================================================
--- trunk/rostests/winetests/msvcrt/data.c [iso-8859-1] (original)
+++ trunk/rostests/winetests/msvcrt/data.c [iso-8859-1] Mon May 25 13:16:39 2009
@@ -70,19 +70,19 @@
static void test_initvar( HMODULE hmsvcrt )
{
OSVERSIONINFO osvi = { sizeof(OSVERSIONINFO) };
- int* (*pp_winver)() = (int*(*)())GetProcAddress(hmsvcrt, "__p__winver");
- int* (*pp_winmajor)() = (int*(*)())GetProcAddress(hmsvcrt,
"__p__winmajor");
- int* (*pp_winminor)() = (int*(*)())GetProcAddress(hmsvcrt,
"__p__winminor");
- int* (*pp_osver)() = (int*(*)())GetProcAddress(hmsvcrt, "__p__osver");
- int winver, winmajor, winminor, osver;
+ int *pp_winver = (int*)GetProcAddress(hmsvcrt, "_winver");
+ int *pp_winmajor = (int*)GetProcAddress(hmsvcrt, "_winmajor");
+ int *pp_winminor = (int*)GetProcAddress(hmsvcrt, "_winminor");
+ int *pp_osver = (int*)GetProcAddress(hmsvcrt, "_osver");
+ unsigned int winver, winmajor, winminor, osver;
if( !( pp_winmajor && pp_winminor && pp_winver)) {
win_skip("_winver variables are not available\n");
return;
}
- winver = *pp_winver();
- winminor = *pp_winminor();
- winmajor = *pp_winmajor();
+ winver = *pp_winver;
+ winminor = *pp_winminor;
+ winmajor = *pp_winmajor;
GetVersionEx( &osvi);
ok( winminor == osvi.dwMinorVersion, "Wrong value for _winminor %02x expected
%02x\n",
winminor, osvi.dwMinorVersion);
@@ -95,7 +95,7 @@
win_skip("_osver variables are not available\n");
return;
}
- osver = *pp_osver();
+ osver = *pp_osver;
ok( osver == (osvi.dwBuildNumber & 0xffff) ||
((osvi.dwBuildNumber >> 24) == osvi.dwMajorVersion &&
((osvi.dwBuildNumber >> 16) & 0xff) == osvi.dwMinorVersion),
/* 95/98/ME */
Modified: trunk/rostests/winetests/msvcrt/heap.c
URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/winetests/msvcrt/heap.c?r…
==============================================================================
--- trunk/rostests/winetests/msvcrt/heap.c [iso-8859-1] (original)
+++ trunk/rostests/winetests/msvcrt/heap.c [iso-8859-1] Mon May 25 13:16:39 2009
@@ -103,7 +103,7 @@
mem1 = malloc(size1);
if (mem1)
{
- int i;
+ unsigned int i;
for (i = 0; i < size1; i++)
((char *)mem)[i] = i + 1;
memcpy(mem1, mem, size1);
@@ -138,7 +138,7 @@
ok(memcmp(mem2, mem1, min(size1, size2))==0, "_aligned_realloc(%p,
%d, %d) has different data\n", mem, size2, alignment);
if (memcmp(mem2, mem1, min(size1, size2)) && winetest_debug >
1)
{
- int i;
+ unsigned int i;
for (i = 0; i < min(size1, size2); i++)
{
if (((char *)mem2)[i] != ((char *)mem1)[i])
@@ -175,7 +175,7 @@
mem1 = malloc(size1);
if (mem1)
{
- int i;
+ unsigned int i;
for (i = 0; i < size1; i++)
((char *)mem)[i] = i + 1;
memcpy(mem1, mem, size1);
@@ -211,7 +211,7 @@
ok(memcmp(mem2, mem1, min(size1, size2))==0,
"_aligned_offset_realloc(%p, %d, %d, %d) has different data\n", mem, size2,
alignment, offset);
if (memcmp(mem2, mem1, min(size1, size2)) && winetest_debug >
1)
{
- int i;
+ unsigned int i;
for (i = 0; i < min(size1, size2); i++)
{
if (((char *)mem2)[i] != ((char *)mem1)[i])