dsound/tests: Write-strings warning fix.

This commit is contained in:
Andrew Talbot 2006-07-31 19:53:07 +01:00 committed by Alexandre Julliard
parent 447721e8cb
commit 70642e2511
1 changed files with 2 additions and 1 deletions

View File

@ -806,6 +806,7 @@ static void dsound8_tests(void)
const char * get_file_version(const char * file_name) const char * get_file_version(const char * file_name)
{ {
static char version[32]; static char version[32];
static char backslash[] = "\\";
DWORD size; DWORD size;
DWORD handle; DWORD handle;
@ -816,7 +817,7 @@ const char * get_file_version(const char * file_name)
if (GetFileVersionInfoA("dsound.dll", handle, size, data)) { if (GetFileVersionInfoA("dsound.dll", handle, size, data)) {
VS_FIXEDFILEINFO *pFixedVersionInfo; VS_FIXEDFILEINFO *pFixedVersionInfo;
UINT len; UINT len;
if (VerQueryValueA(data, "\\", (LPVOID *)&pFixedVersionInfo, &len)) { if (VerQueryValueA(data, backslash, (LPVOID *)&pFixedVersionInfo, &len)) {
sprintf(version, "%ld.%ld.%ld.%ld", sprintf(version, "%ld.%ld.%ld.%ld",
pFixedVersionInfo->dwFileVersionMS >> 16, pFixedVersionInfo->dwFileVersionMS >> 16,
pFixedVersionInfo->dwFileVersionMS & 0xffff, pFixedVersionInfo->dwFileVersionMS & 0xffff,