From 1b4c06d03dbe44243cbf1dc03005aad85b0e36f0 Mon Sep 17 00:00:00 2001 From: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com> Date: Fri, 30 Jul 2021 17:38:46 -0700 Subject: [PATCH] other Framework fixes Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com> --- .../AzTest/AzTest/Platform/Windows/Platform_Windows.cpp | 3 ++- .../Platform/Windows/GridMate/Session/LANSession_Windows.cpp | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Code/Framework/AzTest/AzTest/Platform/Windows/Platform_Windows.cpp b/Code/Framework/AzTest/AzTest/Platform/Windows/Platform_Windows.cpp index 08e86fdc16..777ba66c6d 100644 --- a/Code/Framework/AzTest/AzTest/Platform/Windows/Platform_Windows.cpp +++ b/Code/Framework/AzTest/AzTest/Platform/Windows/Platform_Windows.cpp @@ -9,6 +9,7 @@ #include #include #include +#include //------------------------------------------------------------------------------------------------- class ModuleHandle @@ -151,7 +152,7 @@ namespace AZ va_start(mark, format); azvsnprintf(message, MAX_PRINT_MSG, format, mark); va_end(mark); - OutputDebugString(message); + AZ::Debug::Platform::OutputToDebugger(nullptr, message); } AZ::EnvironmentInstance Platform::GetTestRunnerEnvironment() diff --git a/Code/Framework/GridMate/Platform/Windows/GridMate/Session/LANSession_Windows.cpp b/Code/Framework/GridMate/Platform/Windows/GridMate/Session/LANSession_Windows.cpp index 4bf038a2cf..59a1c65781 100644 --- a/Code/Framework/GridMate/Platform/Windows/GridMate/Session/LANSession_Windows.cpp +++ b/Code/Framework/GridMate/Platform/Windows/GridMate/Session/LANSession_Windows.cpp @@ -21,7 +21,7 @@ namespace GridMate char procPath[256]; char procName[256]; - DWORD ret = GetModuleFileName(NULL, procPath, 256); + DWORD ret = GetModuleFileNameA(NULL, procPath, 256); if (ret > 0) { ::_splitpath_s(procPath, 0, 0, 0, 0, procName, 256, 0, 0);