mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-05-04 18:38:05 +00:00
Silence a warning
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58563 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
5baf8ece83
commit
fc09f64209
@ -22,14 +22,16 @@ std::string sys::osName() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
std::string sys::osVersion() {
|
std::string sys::osVersion() {
|
||||||
OSVERSIONINFO osvi = { 0 };
|
OSVERSIONINFO osvi;
|
||||||
|
|
||||||
|
memset(&osvi, 0, sizeof(osvi));
|
||||||
osvi.dwOSVersionInfoSize = sizeof(OSVERSIONINFO);
|
osvi.dwOSVersionInfoSize = sizeof(OSVERSIONINFO);
|
||||||
|
|
||||||
if (!GetVersionEx(&osvi))
|
if (!GetVersionEx(&osvi))
|
||||||
return "";
|
return "";
|
||||||
|
|
||||||
char buf[64];
|
char buf[64];
|
||||||
sprintf(buf, "%d.%d", osvi.dwMajorVersion, osvi.dwMinorVersion);
|
sprintf(buf, "%d.%d", (int)osvi.dwMajorVersion, (int)osvi.dwMinorVersion);
|
||||||
|
|
||||||
return buf;
|
return buf;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user