summaryrefslogtreecommitdiff
path: root/src/pal/tests/palsuite/filemapping_memmgt/HeapReAlloc/test5
diff options
context:
space:
mode:
Diffstat (limited to 'src/pal/tests/palsuite/filemapping_memmgt/HeapReAlloc/test5')
-rw-r--r--src/pal/tests/palsuite/filemapping_memmgt/HeapReAlloc/test5/CMakeLists.txt2
-rw-r--r--src/pal/tests/palsuite/filemapping_memmgt/HeapReAlloc/test5/test5.cpp (renamed from src/pal/tests/palsuite/filemapping_memmgt/HeapReAlloc/test5/test5.c)6
2 files changed, 4 insertions, 4 deletions
diff --git a/src/pal/tests/palsuite/filemapping_memmgt/HeapReAlloc/test5/CMakeLists.txt b/src/pal/tests/palsuite/filemapping_memmgt/HeapReAlloc/test5/CMakeLists.txt
index 3ab3ec16e8..ed3d390625 100644
--- a/src/pal/tests/palsuite/filemapping_memmgt/HeapReAlloc/test5/CMakeLists.txt
+++ b/src/pal/tests/palsuite/filemapping_memmgt/HeapReAlloc/test5/CMakeLists.txt
@@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(SOURCES
- test5.c
+ test5.cpp
)
add_executable(paltest_heaprealloc_test5
diff --git a/src/pal/tests/palsuite/filemapping_memmgt/HeapReAlloc/test5/test5.c b/src/pal/tests/palsuite/filemapping_memmgt/HeapReAlloc/test5/test5.cpp
index 230e65e492..fcd38376ec 100644
--- a/src/pal/tests/palsuite/filemapping_memmgt/HeapReAlloc/test5/test5.c
+++ b/src/pal/tests/palsuite/filemapping_memmgt/HeapReAlloc/test5/test5.cpp
@@ -37,7 +37,7 @@ int __cdecl main(int argc, char *argv[])
}
/* Allocate 100 bytes on the heap */
- if((TheMemory = HeapAlloc(TheHeap, 0, 100)) == NULL)
+ if((TheMemory = (char*)HeapAlloc(TheHeap, 0, 100)) == NULL)
{
Fail("ERROR: HeapAlloc returned NULL when it was called. "
"GetLastError() returned %d.",GetLastError());
@@ -47,7 +47,7 @@ int __cdecl main(int argc, char *argv[])
memset(TheMemory, 'X', 100);
/* Reallocate the memory into 0 bytes */
- ReAllocMemory = HeapReAlloc(TheHeap, 0, TheMemory, 0);
+ ReAllocMemory = (char*)HeapReAlloc(TheHeap, 0, TheMemory, 0);
if(ReAllocMemory == NULL)
{
@@ -56,7 +56,7 @@ int __cdecl main(int argc, char *argv[])
}
/* Reallocate the memory we just put into 0 bytes, into 100 bytes. */
- ReAllocMemory2 = HeapReAlloc(TheHeap, 0, ReAllocMemory, 100);
+ ReAllocMemory2 = (char*)HeapReAlloc(TheHeap, 0, ReAllocMemory, 100);
if(ReAllocMemory2 == NULL)
{