Andrew Talbot : dsound/tests: Write-strings warning fix.
Module: wine Branch: refs/heads/master Commit: 70642e2511240d28c794c1d94dbc9f94a35495f1 URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=70642e2511240d28c794c1d9... Author: Andrew Talbot <Andrew.Talbot(a)talbotville.com> Date: Mon Jul 31 19:53:07 2006 +0100 dsound/tests: Write-strings warning fix. --- dlls/dsound/tests/dsound8.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/dlls/dsound/tests/dsound8.c b/dlls/dsound/tests/dsound8.c index 179b733..e207a9e 100644 --- a/dlls/dsound/tests/dsound8.c +++ b/dlls/dsound/tests/dsound8.c @@ -806,6 +806,7 @@ static void dsound8_tests(void) const char * get_file_version(const char * file_name) { static char version[32]; + static char backslash[] = "\\"; DWORD size; DWORD handle; @@ -816,7 +817,7 @@ const char * get_file_version(const char if (GetFileVersionInfoA("dsound.dll", 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,
participants (1)
-
Alexandre Julliard