shell32: Secure filename copy to fixed size variable wfileName [try2]

Tomasz Jezierski - Tefnet developers at
Tue Apr 22 02:58:10 CDT 2008

We don't know size of source string so we should copy not more than
wfileName which size is only MAX_PATH == 260 characters.

Try no 2 (fixed with Dmitry's suggestions)
1. StrCpyNW changed to lstrcpynW
2. Third argument is number of characters, not number of bytes

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Secure-filename-copy-to-fixed-size-variable-wfileNam.patch
Type: application/mbox
Size: 0 bytes
Desc: not available
Url : 

More information about the wine-patches mailing list