MSVCRTD/tests: pass allowed type of memory block
Saulius Krasuckas
saulius2 at ar.fi.lt
Thu Jul 21 04:27:23 CDT 2005
This complements my previous patch. This should make test pass on all
platforms.
ChangeLog:
Saulius Krasuckas <saulius.krasuckas_at_ieee.org>
Pass only allowed type of debug heap memory block.
Index: dlls/msvcrtd/tests/debug.c
===================================================================
RCS file: /home/wine/wine/dlls/msvcrtd/tests/debug.c,v
retrieving revision 1.2
diff -p -u -r1.2 debug.c
--- dlls/msvcrtd/tests/debug.c 20 Jun 2005 15:35:54 -0000 1.2
+++ dlls/msvcrtd/tests/debug.c 21 Jul 2005 09:05:57 -0000
@@ -24,6 +24,8 @@
#include "winbase.h"
#include "winnt.h"
+#include "crtdbg.h"
+
#include "wine/test.h"
/**********************************************************************/
@@ -55,7 +57,7 @@ static void test_new(void)
{
void *mem;
- mem = pMSVCRTD_operator_new_dbg(42, 0, __FILE__, __LINE__);
+ mem = pMSVCRTD_operator_new_dbg(42, _NORMAL_BLOCK, __FILE__, __LINE__);
ok(mem != NULL, "memory not allocated\n");
}
More information about the wine-patches
mailing list