[dlls/msvcrt/dir.c] Strncpy eliminaion.
Peter Berg Larsen
pebl at math.ku.dk
Sun Mar 27 13:06:18 CST 2005
The pathWithDrive must be \0 terminated as ACTION_RecurseSearchDirectory
as the first does a strlenw on the parameter.
Changelog:
Replace strncpyW with lstrcpynW.
Index: dlls/msi/appsearch.c
===================================================================
RCS file: /home/wine/wine/dlls/msi/appsearch.c,v
retrieving revision 1.6
diff -u -r1.6 appsearch.c
--- dlls/msi/appsearch.c 23 Mar 2005 13:15:19 -0000 1.6
+++ dlls/msi/appsearch.c 26 Mar 2005 09:40:50 -0000
@@ -672,8 +672,8 @@
pathWithDrive[0] = 'A' + i;
if (GetDriveTypeW(pathWithDrive) == DRIVE_FIXED)
{
- strncpyW(pathWithDrive + 3, expanded,
- sizeof(pathWithDrive) / sizeof(pathWithDrive[0]) - 3);
+ lstrcpynW(pathWithDrive + 3, expanded,
+ sizeof(pathWithDrive) / sizeof(pathWithDrive[0]) - 3);
if (sig->File)
rc = ACTION_RecurseSearchDirectory(package, &found, sig,
pathWithDrive, depth);
More information about the wine-patches
mailing list