https://bugs.winehq.org/show_bug.cgi?id=44161
Bug ID: 44161 Summary: Possible incorrect string message in "dlls/kernel32/tests/volume.c" line 263 Product: Wine Version: unspecified Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: kernel32 Assignee: wine-bugs@winehq.org Reporter: petrum@gmail.com Distribution: ---
While experimenting with a CodeSonar plugin we develop, we automatically detected a potential bug in file "dlls/kernel32/tests/volume.c" line 263, function test_GetVolumeNameForVolumeMountPointW
if (!pGetVolumeNameForVolumeMountPointW) { win_skip("GetVolumeNameForVolumeMountPointW not found\n"); return; }
ret = pGetVolumeNameForVolumeMountPointW(path, volume, 0); ok(ret == FALSE, "GetVolumeNameForVolumeMountPointA succeeded\n"); //HERE ok(GetLastError() == ERROR_FILENAME_EXCED_RANGE || GetLastError() == ERROR_INVALID_PARAMETER, /* Vista */ "wrong error, last=%d\n", GetLastError());
Shouldn't the string be "GetVolumeNameForVolumeMountPoint[W] succeeded\n" (i.e. with a 'W' instead of 'A')?
Thanks, Petru Florin Mihancea