Module: wine Branch: refs/heads/master Commit: 70cfb05fc43ab5b0f05a0e03ee89587c44e4ab1c URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=70cfb05fc43ab5b0f05a0e03...
Author: Andrew Talbot Andrew.Talbot@talbotville.com Date: Mon Jul 31 19:51:00 2006 +0100
dinput/tests: Write-strings warning fix.
---
dlls/dinput/tests/keyboard.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/dlls/dinput/tests/keyboard.c b/dlls/dinput/tests/keyboard.c index 7a64bbc..302e178 100644 --- a/dlls/dinput/tests/keyboard.c +++ b/dlls/dinput/tests/keyboard.c @@ -36,6 +36,7 @@ #include "dinput_test.h" 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 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,