[cpp-sp] 09/10: Force 8-bit APrs to Win32

Rod Widdowson rdw at steadingsoftware.com
Mon Dec 16 14:19:04 UTC 2024


This is an automated email from the git hooks/post-receive script.

rdw pushed a commit to branch dev/vc22-dev
in repository cpp-sp.

View the commit online:
http://git.shibboleth.net/view/?p=cpp-sp.git;a=commit;h=82fe4fc40434a9944b3264551fe6ffe107200de9

commit 82fe4fc40434a9944b3264551fe6ffe107200de9
Author: Rod Widdowson <rdw at steadingsoftware.com>
AuthorDate: Sat Dec 14 15:26:55 2024 +0000

    Force 8-bit APrs to Win32
---
 shibsp/handler/impl/StatusHandler.cpp | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/shibsp/handler/impl/StatusHandler.cpp b/shibsp/handler/impl/StatusHandler.cpp
index d0ae6bf1..0679d1cf 100644
--- a/shibsp/handler/impl/StatusHandler.cpp
+++ b/shibsp/handler/impl/StatusHandler.cpp
@@ -486,11 +486,11 @@ ostream& StatusHandler::systemInfo(ostream& os) const
         os << "/>";
     }
 #elif defined(WIN32)
-    OSVERSIONINFOEX osvi;
-    memset(&osvi, 0, sizeof(OSVERSIONINFOEX));
+    OSVERSIONINFOEXA osvi;
+    memset(&osvi, 0, sizeof(OSVERSIONINFOEXA));
     osvi.dwOSVersionInfoSize = sizeof(OSVERSIONINFOEX);
     PGVEA pGVEA = (PGVEA)GetProcAddress(GetModuleHandle(TEXT("kernel32.dll")), "GetVersionExA");
-    if(pGVEA && pGVEA((OSVERSIONINFO*)&osvi)) {
+    if(pGVEA && pGVEA((OSVERSIONINFOA*)&osvi)) {
         os << "<Windows"
            << " version='" << osvi.dwMajorVersion << "." << osvi.dwMinorVersion << "'"
            << " build='" << osvi.dwBuildNumber << "'";

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list