diff options
Diffstat (limited to 'src/pal/tests/palsuite/filemapping_memmgt/HeapReAlloc')
10 files changed, 14 insertions, 14 deletions
diff --git a/src/pal/tests/palsuite/filemapping_memmgt/HeapReAlloc/test1/CMakeLists.txt b/src/pal/tests/palsuite/filemapping_memmgt/HeapReAlloc/test1/CMakeLists.txt index 1decb02c73..17e0127435 100644 --- a/src/pal/tests/palsuite/filemapping_memmgt/HeapReAlloc/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/filemapping_memmgt/HeapReAlloc/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_heaprealloc_test1 diff --git a/src/pal/tests/palsuite/filemapping_memmgt/HeapReAlloc/test1/test1.c b/src/pal/tests/palsuite/filemapping_memmgt/HeapReAlloc/test1/test1.cpp index 497d208eca..eedd45e45d 100644 --- a/src/pal/tests/palsuite/filemapping_memmgt/HeapReAlloc/test1/test1.c +++ b/src/pal/tests/palsuite/filemapping_memmgt/HeapReAlloc/test1/test1.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 */ - ReAllocMemory = HeapReAlloc(TheHeap, 0, TheMemory, 100); + ReAllocMemory = (char*)HeapReAlloc(TheHeap, 0, TheMemory, 100); if(ReAllocMemory == NULL) { diff --git a/src/pal/tests/palsuite/filemapping_memmgt/HeapReAlloc/test2/CMakeLists.txt b/src/pal/tests/palsuite/filemapping_memmgt/HeapReAlloc/test2/CMakeLists.txt index 6f5510387a..a9239354ba 100644 --- a/src/pal/tests/palsuite/filemapping_memmgt/HeapReAlloc/test2/CMakeLists.txt +++ b/src/pal/tests/palsuite/filemapping_memmgt/HeapReAlloc/test2/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test2.c + test2.cpp ) add_executable(paltest_heaprealloc_test2 diff --git a/src/pal/tests/palsuite/filemapping_memmgt/HeapReAlloc/test2/test2.c b/src/pal/tests/palsuite/filemapping_memmgt/HeapReAlloc/test2/test2.cpp index 13e789f901..a7e3b2a055 100644 --- a/src/pal/tests/palsuite/filemapping_memmgt/HeapReAlloc/test2/test2.c +++ b/src/pal/tests/palsuite/filemapping_memmgt/HeapReAlloc/test2/test2.cpp @@ -38,7 +38,7 @@ int __cdecl main(int argc, char *argv[]) } /* Allocate 200 bytes on the heap */ - if((TheMemory = HeapAlloc(TheHeap, 0, 200)) == NULL) + if((TheMemory = (char*)HeapAlloc(TheHeap, 0, 200)) == NULL) { Fail("ERROR: HeapAlloc returned NULL when it was called. " "GetLastError() returned %d.",GetLastError()); @@ -51,7 +51,7 @@ int __cdecl main(int argc, char *argv[]) memset(TheMemory+100, 'Z', 100); /* Reallocate the memory to 100 bytes */ - ReAllocMemory = HeapReAlloc(TheHeap, 0, TheMemory, 100); + ReAllocMemory = (char*)HeapReAlloc(TheHeap, 0, TheMemory, 100); if(ReAllocMemory == NULL) { diff --git a/src/pal/tests/palsuite/filemapping_memmgt/HeapReAlloc/test3/CMakeLists.txt b/src/pal/tests/palsuite/filemapping_memmgt/HeapReAlloc/test3/CMakeLists.txt index 7ad836706a..2d82b6efdd 100644 --- a/src/pal/tests/palsuite/filemapping_memmgt/HeapReAlloc/test3/CMakeLists.txt +++ b/src/pal/tests/palsuite/filemapping_memmgt/HeapReAlloc/test3/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test3.c + test3.cpp ) add_executable(paltest_heaprealloc_test3 diff --git a/src/pal/tests/palsuite/filemapping_memmgt/HeapReAlloc/test3/test3.c b/src/pal/tests/palsuite/filemapping_memmgt/HeapReAlloc/test3/test3.cpp index dea9de348d..d4139e8d5e 100644 --- a/src/pal/tests/palsuite/filemapping_memmgt/HeapReAlloc/test3/test3.c +++ b/src/pal/tests/palsuite/filemapping_memmgt/HeapReAlloc/test3/test3.cpp @@ -38,7 +38,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()); @@ -48,7 +48,7 @@ int __cdecl main(int argc, char *argv[]) memset(TheMemory, 'X', 100); /* Reallocate the memory to 200 bytes */ - ReAllocMemory = HeapReAlloc(TheHeap, 0, TheMemory, 200); + ReAllocMemory = (char*)HeapReAlloc(TheHeap, 0, TheMemory, 200); if(ReAllocMemory == NULL) { diff --git a/src/pal/tests/palsuite/filemapping_memmgt/HeapReAlloc/test4/CMakeLists.txt b/src/pal/tests/palsuite/filemapping_memmgt/HeapReAlloc/test4/CMakeLists.txt index 024a4ef840..129d8a47cd 100644 --- a/src/pal/tests/palsuite/filemapping_memmgt/HeapReAlloc/test4/CMakeLists.txt +++ b/src/pal/tests/palsuite/filemapping_memmgt/HeapReAlloc/test4/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test4.c + test4.cpp ) add_executable(paltest_heaprealloc_test4 diff --git a/src/pal/tests/palsuite/filemapping_memmgt/HeapReAlloc/test4/test4.c b/src/pal/tests/palsuite/filemapping_memmgt/HeapReAlloc/test4/test4.cpp index cebf904501..cebf904501 100644 --- a/src/pal/tests/palsuite/filemapping_memmgt/HeapReAlloc/test4/test4.c +++ b/src/pal/tests/palsuite/filemapping_memmgt/HeapReAlloc/test4/test4.cpp 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) { |