• Rob Shearman's avatar
    wininet: Fix URLCache_LocalFileNameToPathA to return a full path, rather than… · cdd135c2
    Rob Shearman authored
    wininet: Fix URLCache_LocalFileNameToPathA to return a full path, rather than just the container path.
    
    This was caused by path_len including the nul-terminator and so the rest 
    of the string was being added after the nul-terminator, which is 
    incorrect. This is fixed by making path_len not include the nul-terminator.
    
    Also fix a few other issues with the function, like not passing a 
    correct length into the second call to WideCharToMultiByte, nRequired 
    being calculated incorrectly and the string not always being nul-terminated.
    
    Add a test for this function by testing the lpszLocalFileName field 
    obtained from RetrieveUrlCacheEntryFileA.
    cdd135c2
Name
Last commit
Last update
dlls Loading commit data...
documentation Loading commit data...
fonts Loading commit data...
include Loading commit data...
libs Loading commit data...
loader Loading commit data...
programs Loading commit data...
server Loading commit data...
tools Loading commit data...
.gitignore Loading commit data...
ANNOUNCE Loading commit data...
AUTHORS Loading commit data...
COPYING.LIB Loading commit data...
ChangeLog Loading commit data...
LICENSE Loading commit data...
LICENSE.OLD Loading commit data...
Make.rules.in Loading commit data...
Makefile.in Loading commit data...
README Loading commit data...
VERSION Loading commit data...
aclocal.m4 Loading commit data...
configure Loading commit data...
configure.ac Loading commit data...