wininet: Use nameless structs and unions.

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Jacek Caban 2021-03-23 00:30:47 +01:00 committed by Alexandre Julliard
parent f59b482c2c
commit 5d8dde1ab7
2 changed files with 5 additions and 6 deletions

View file

@ -1,4 +1,3 @@
EXTRADEFS = -D_WINX32_ -DWINE_NO_NAMELESS_EXTENSION
MODULE = wininet.dll
IMPORTLIB = wininet
IMPORTS = mpr shlwapi shell32 user32 ws2_32 advapi32

View file

@ -3809,12 +3809,12 @@ BOOL WINAPI GetUrlCacheConfigInfoW(LPINTERNET_CACHE_CONFIG_INFOW info, LPDWORD s
info->dwNumCachePaths = 1;
info->dwNormalUsage = 0;
info->dwExemptUsage = 0;
info->u.s.dwCacheSize = container->file_size / 1024;
lstrcpynW(info->u.s.CachePath, container->path, MAX_PATH);
info->dwCacheSize = container->file_size / 1024;
lstrcpynW(info->CachePath, container->path, MAX_PATH);
cache_container_close_index(container);
TRACE("CachePath %s\n", debugstr_w(info->u.s.CachePath));
TRACE("CachePath %s\n", debugstr_w(info->CachePath));
return TRUE;
}
@ -3846,8 +3846,8 @@ BOOL WINAPI GetUrlCacheConfigInfoA(LPINTERNET_CACHE_CONFIG_INFOA info, LPDWORD s
info->dwNumCachePaths = infoW.dwNumCachePaths;
info->dwNormalUsage = infoW.dwNormalUsage;
info->dwExemptUsage = infoW.dwExemptUsage;
info->u.s.dwCacheSize = infoW.u.s.dwCacheSize;
WideCharToMultiByte(CP_ACP, 0, infoW.u.s.CachePath, -1, info->u.s.CachePath, MAX_PATH, NULL, NULL);
info->dwCacheSize = infoW.dwCacheSize;
WideCharToMultiByte(CP_ACP, 0, infoW.CachePath, -1, info->CachePath, MAX_PATH, NULL, NULL);
return TRUE;
}