Marcus Meissner : shell32/tests: Fixed CharLowerBuffA size.
Alexandre Julliard
julliard at winehq.org
Mon Jan 16 15:48:49 CST 2017
Module: wine
Branch: master
Commit: c3e6ecde36692d03dc360200c7a7044a02c4a392
URL: http://source.winehq.org/git/wine.git/?a=commit;h=c3e6ecde36692d03dc360200c7a7044a02c4a392
Author: Marcus Meissner <marcus at jet.franken.de>
Date: Fri Jan 13 23:42:51 2017 +0100
shell32/tests: Fixed CharLowerBuffA size.
Signed-off-by: Marcus Meissner <marcus at jet.franken.de>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/shell32/tests/shelllink.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/shell32/tests/shelllink.c b/dlls/shell32/tests/shelllink.c
index b789db4..fdf2b14 100644
--- a/dlls/shell32/tests/shelllink.c
+++ b/dlls/shell32/tests/shelllink.c
@@ -1276,7 +1276,7 @@ todo_wine {
index = 5000;
strcpy(pathA, "user32.dll");
hicon = ExtractAssociatedIconA(NULL, pathA, &index);
- CharLowerBuffA(pathA, -1);
+ CharLowerBuffA(pathA, strlen(pathA));
todo_wine {
ok(hicon != NULL, "Got icon %p\n", hicon);
ok(!!strstr(pathA, "shell32.dll"), "Unexpected path %s\n", pathA);
@@ -1288,7 +1288,7 @@ todo_wine {
index = 0xcaca;
strcpy(pathA, "dummy.exe");
hicon = ExtractAssociatedIconA(NULL, pathA, &index);
- CharLowerBuffA(pathA, -1);
+ CharLowerBuffA(pathA, strlen(pathA));
todo_wine {
ok(hicon != NULL, "Got icon %p\n", hicon);
ok(!!strstr(pathA, "shell32.dll"), "Unexpected path %s\n", pathA);
More information about the wine-cvs
mailing list