xref: /reactos/dll/win32/cabinet/cabinet_ros.diff (revision 1734f297)
1Index: fdi.c
2===================================================================
3--- fdi.c	(revision 73922)
4+++ fdi.c	(working copy)
5@@ -2039,11 +2039,24 @@
6             fullpath[0] = '\0';
7             if (pathlen) {
8               strcpy(fullpath, userpath);
9+#ifndef __REACTOS__
10               if (fullpath[pathlen - 1] != '\\')
11                 strcat(fullpath, "\\");
12+#else
13+              if (fullpath[pathlen - 1] == '\\')
14+                fullpath[pathlen - 1] = '\0';
15+#endif
16             }
17+#ifndef __REACTOS__
18             if (filenamelen)
19+#else
20+            if (filenamelen) {
21+              strcat(fullpath, "\\");
22+#endif
23               strcat(fullpath, cab->mii.nextname);
24+#ifdef __REACTOS__
25+            }
26+#endif
27
28             TRACE("full cab path/file name: %s\n", debugstr_a(fullpath));
29
30