Tomasz Jezierski : shell32: Secure filename copy to fixed size variable wfileName.

Alexandre Julliard julliard at winehq.org
Wed Apr 23 07:59:43 CDT 2008


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

Author: Tomasz Jezierski <developers at tefnet.pl>
Date:   Tue Apr 22 09:39:48 2008 +0200

shell32: Secure filename copy to fixed size variable wfileName.

---

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

diff --git a/dlls/shell32/shlexec.c b/dlls/shell32/shlexec.c
index 794d0bd..fec7870 100644
--- a/dlls/shell32/shlexec.c
+++ b/dlls/shell32/shlexec.c
@@ -1711,10 +1711,10 @@ BOOL SHELL_execute( LPSHELLEXECUTEINFOW sei, SHELL_ExecuteW32 execfunc )
 		}
 	    }
 
-	    strcpyW(wfileName, sei_tmp.lpFile);
+           lstrcpynW(wfileName, sei_tmp.lpFile,sizeof(wfileName)/sizeof(WCHAR));
 	}
     } else
-	strcpyW(wfileName, sei_tmp.lpFile);
+       lstrcpynW(wfileName, sei_tmp.lpFile,sizeof(wfileName)/sizeof(WCHAR));
 
     lpFile = wfileName;
 




More information about the wine-cvs mailing list