Commit cdeaf7c8 authored by Alexandre Julliard's avatar Alexandre Julliard

cabinet: Make sure the cabinet file name doesn't end with a backslash.

parent fcb8edee
...@@ -2055,6 +2055,8 @@ static int fdi_decomp(const struct fdi_file *fi, int savemode, fdi_decomp_state ...@@ -2055,6 +2055,8 @@ static int fdi_decomp(const struct fdi_file *fi, int savemode, fdi_decomp_state
} }
if (filenamelen) if (filenamelen)
strcat(fullpath, cab->mii.nextname); strcat(fullpath, cab->mii.nextname);
else if (fullpath[0])
fullpath[strlen(fullpath)-1] = 0; /* remove trailing backslash */
TRACE("full cab path/file name: %s\n", debugstr_a(fullpath)); TRACE("full cab path/file name: %s\n", debugstr_a(fullpath));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment