From 71c497a3a315079ae333fedf8ad639bbcc100848 Mon Sep 17 00:00:00 2001 From: Ozkan Sezer Date: Tue, 21 Dec 2021 14:50:00 +0300 Subject: [PATCH] visualtest windows build fixes --- visualtest/include/SDL_visualtest_process.h | 4 ++-- visualtest/src/linux/linux_process.c | 8 ++++---- visualtest/src/windows/windows_process.c | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/visualtest/include/SDL_visualtest_process.h b/visualtest/include/SDL_visualtest_process.h index 632e0ac27..26ce5a098 100644 --- a/visualtest/include/SDL_visualtest_process.h +++ b/visualtest/include/SDL_visualtest_process.h @@ -8,8 +8,8 @@ #include #if defined(__WIN32__) -#include -#include +#include +#include #elif defined(__LINUX__) #include #else diff --git a/visualtest/src/linux/linux_process.c b/visualtest/src/linux/linux_process.c index d6e7f75b7..d81a32eb7 100644 --- a/visualtest/src/linux/linux_process.c +++ b/visualtest/src/linux/linux_process.c @@ -8,16 +8,16 @@ #include #include -#include -#include -#include -#include #include "SDL_visualtest_process.h" #include "SDL_visualtest_harness_argparser.h" #include "SDL_visualtest_parsehelper.h" #if defined(__LINUX__) +#include +#include +#include +#include static void LogLastError(char* str) diff --git a/visualtest/src/windows/windows_process.c b/visualtest/src/windows/windows_process.c index c13118d93..346d60582 100644 --- a/visualtest/src/windows/windows_process.c +++ b/visualtest/src/windows/windows_process.c @@ -174,7 +174,7 @@ CloseWindowCallback(HWND hwnd, LPARAM lparam) GetWindowThreadProcessId(hwnd, &pid); if(pid == pinfo->pi.dwProcessId) { - DWORD result; + DWORD_PTR result; if(!SendMessageTimeout(hwnd, WM_CLOSE, 0, 0, SMTO_BLOCK, 1000, &result)) {