[cpp-sp] 10/11: Force 8-bit APrs to Win32
Rod Widdowson
rdw at steadingsoftware.com
Fri Jan 3 14:41:25 UTC 2025
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=b59a6cc37904df222e2a173be10198e028432dc3
commit b59a6cc37904df222e2a173be10198e028432dc3
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