https://git.reactos.org/?p=reactos.git;a=commitdiff;h=7046ddd63ce6b6991b9069e6bed08a8170abf307

commit 7046ddd63ce6b6991b9069e6bed08a8170abf307
Author:     Amine Khaldi <[email protected]>
AuthorDate: Sat Oct 26 22:56:35 2019 +0100
Commit:     Amine Khaldi <[email protected]>
CommitDate: Sat Oct 26 22:56:35 2019 +0100

    [FUSION_WINETEST] Sync with Wine Staging 4.18. CORE-16441
---
 modules/rostests/winetests/fusion/asmenum.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/rostests/winetests/fusion/asmenum.c 
b/modules/rostests/winetests/fusion/asmenum.c
index 5091be464a1..115089e6741 100644
--- a/modules/rostests/winetests/fusion/asmenum.c
+++ b/modules/rostests/winetests/fusion/asmenum.c
@@ -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;
         }
 

Reply via email to