visualtest windows build fixes
parent
449ef08dcc
commit
71c497a3a3
|
@ -8,8 +8,8 @@
|
|||
#include <SDL_platform.h>
|
||||
|
||||
#if defined(__WIN32__)
|
||||
#include <Windows.h>
|
||||
#include <Shlwapi.h>
|
||||
#include <windows.h>
|
||||
#include <shlwapi.h>
|
||||
#elif defined(__LINUX__)
|
||||
#include <unistd.h>
|
||||
#else
|
||||
|
|
|
@ -8,16 +8,16 @@
|
|||
|
||||
#include <SDL.h>
|
||||
#include <SDL_test.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/wait.h>
|
||||
#include <unistd.h>
|
||||
#include <errno.h>
|
||||
|
||||
#include "SDL_visualtest_process.h"
|
||||
#include "SDL_visualtest_harness_argparser.h"
|
||||
#include "SDL_visualtest_parsehelper.h"
|
||||
|
||||
#if defined(__LINUX__)
|
||||
#include <sys/types.h>
|
||||
#include <sys/wait.h>
|
||||
#include <unistd.h>
|
||||
#include <errno.h>
|
||||
|
||||
static void
|
||||
LogLastError(char* str)
|
||||
|
|
|
@ -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))
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue