Commit 5d8dde1a authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

wininet: Use nameless structs and unions.

parent f59b482c
EXTRADEFS = -D_WINX32_ -DWINE_NO_NAMELESS_EXTENSION
MODULE = wininet.dll
IMPORTLIB = wininet
IMPORTS = mpr shlwapi shell32 user32 ws2_32 advapi32
......
......@@ -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;
}
......
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