diff options
Diffstat (limited to 'src/pal/tests/palsuite/miscellaneous/GetCommandLineW')
-rw-r--r-- | src/pal/tests/palsuite/miscellaneous/GetCommandLineW/test1/CMakeLists.txt | 2 | ||||
-rw-r--r-- | src/pal/tests/palsuite/miscellaneous/GetCommandLineW/test1/test.cpp (renamed from src/pal/tests/palsuite/miscellaneous/GetCommandLineW/test1/test.c) | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/pal/tests/palsuite/miscellaneous/GetCommandLineW/test1/CMakeLists.txt b/src/pal/tests/palsuite/miscellaneous/GetCommandLineW/test1/CMakeLists.txt index 491fdca9b5..d15b84a59e 100644 --- a/src/pal/tests/palsuite/miscellaneous/GetCommandLineW/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/miscellaneous/GetCommandLineW/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test.c + test.cpp ) add_executable(paltest_getcommandlinew_test1 diff --git a/src/pal/tests/palsuite/miscellaneous/GetCommandLineW/test1/test.c b/src/pal/tests/palsuite/miscellaneous/GetCommandLineW/test1/test.cpp index d8a81746b6..3417c149a0 100644 --- a/src/pal/tests/palsuite/miscellaneous/GetCommandLineW/test1/test.c +++ b/src/pal/tests/palsuite/miscellaneous/GetCommandLineW/test1/test.cpp @@ -31,7 +31,7 @@ int __cdecl main(int argc, char *argv[]) return FAIL; } - CommandLine = malloc(1024); + CommandLine = (WCHAR*)malloc(1024); wcscpy(CommandLine,convert(argv[0])); for(i=1;i<argc;++i) |