dinput/tests: Write-strings warning fix.
This commit is contained in:
parent
70642e2511
commit
70cfb05fc4
|
@ -36,6 +36,7 @@
|
|||
const char * get_file_version(const char * file_name)
|
||||
{
|
||||
static char version[32];
|
||||
static char backslash[] = "\\";
|
||||
DWORD size;
|
||||
DWORD handle;
|
||||
|
||||
|
@ -46,7 +47,7 @@ const char * get_file_version(const char * file_name)
|
|||
if (GetFileVersionInfoA(file_name, handle, size, data)) {
|
||||
VS_FIXEDFILEINFO *pFixedVersionInfo;
|
||||
UINT len;
|
||||
if (VerQueryValueA(data, "\\", (LPVOID *)&pFixedVersionInfo, &len)) {
|
||||
if (VerQueryValueA(data, backslash, (LPVOID *)&pFixedVersionInfo, &len)) {
|
||||
sprintf(version, "%ld.%ld.%ld.%ld",
|
||||
pFixedVersionInfo->dwFileVersionMS >> 16,
|
||||
pFixedVersionInfo->dwFileVersionMS & 0xffff,
|
||||
|
|
Loading…
Reference in New Issue