Marcus Meissner : shell32: Use characters not bytes in one place (Coverity) .

Alexandre Julliard julliard at winehq.org
Mon Sep 3 13:19:11 CDT 2012


Module: wine
Branch: master
Commit: 006ee88278ff455075165b29fa53c0ab989f6db2
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=006ee88278ff455075165b29fa53c0ab989f6db2

Author: Marcus Meissner <meissner at suse.de>
Date:   Sun Sep  2 15:12:34 2012 +0200

shell32: Use characters not bytes in one place (Coverity).

---

 dlls/shell32/shlexec.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/shell32/shlexec.c b/dlls/shell32/shlexec.c
index e351d86..a1599e4 100644
--- a/dlls/shell32/shlexec.c
+++ b/dlls/shell32/shlexec.c
@@ -1430,7 +1430,7 @@ static BOOL SHELL_translate_idlist( LPSHELLEXECUTEINFOW sei, LPWSTR wszParameter
     BOOL appKnownSingular = FALSE;
 
     /* last chance to translate IDList: now also allow CLSID paths */
-    if (SUCCEEDED(SHELL_GetPathFromIDListForExecuteW(sei->lpIDList, buffer, sizeof(buffer)))) {
+    if (SUCCEEDED(SHELL_GetPathFromIDListForExecuteW(sei->lpIDList, buffer, sizeof(buffer)/sizeof(WCHAR)))) {
         if (buffer[0]==':' && buffer[1]==':') {
             /* open shell folder for the specified class GUID */
             if (strlenW(buffer) + 1 > parametersLen)




More information about the wine-cvs mailing list