[FUSION_WINETEST] Sync with Wine Staging 4.18. CORE-16441
authorAmine Khaldi <amine.khaldi@reactos.org>
Sat, 26 Oct 2019 21:56:35 +0000 (22:56 +0100)
committerAmine Khaldi <amine.khaldi@reactos.org>
Sat, 26 Oct 2019 21:56:35 +0000 (22:56 +0100)
modules/rostests/winetests/fusion/asmenum.c

index 5091be4..115089e 100644 (file)
@@ -242,10 +242,10 @@ static void enum_gac_assembly_dirs(struct list *assemblies, const char *parent,
 
         *end = 0;
         /* Directories with no dll or exe will not be enumerated */
-        snprintf(end, path + MAX_PATH - end, "%s\\%s.dll", ffd.cFileName, parent);
+        sprintf(end, "%s\\%s.dll", ffd.cFileName, parent);
         if (GetFileAttributesA(path) == INVALID_FILE_ATTRIBUTES)
         {
-            snprintf(end, path + MAX_PATH - end, "%s\\%s.exe", ffd.cFileName, parent);
+            sprintf(end, "%s\\%s.exe", ffd.cFileName, parent);
             if (GetFileAttributesA(path) == INVALID_FILE_ATTRIBUTES) continue;
         }