* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
-#define WIN32_NO_STATUS
-#define _INC_WINDOWS
-#define COM_NO_WINDOWS_H
-
#include <stdarg.h>
+#ifdef __REACTOS__
+#include <wchar.h>
+#endif
#define COBJMACROS
-#include <windef.h>
-#include <winbase.h>
-//#include "winuser.h"
-#include <ole2.h>
-#include <fusion.h>
-#include <wine/debug.h>
-#include <wine/unicode.h>
+#include "windef.h"
+#include "winbase.h"
+#include "winuser.h"
+#include "ole2.h"
+#include "fusion.h"
+#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL(fusion);
HRESULT WINAPI InitializeFusion(void)
{
FIXME("\n");
- return E_NOTIMPL;
+ return S_OK;
}
/******************************************************************
return E_NOTIMPL;
}
+/******************************************************************
+ * CopyPDBs (FUSION.@)
+ */
+HRESULT WINAPI CopyPDBs(void *unknown)
+{
+ FIXME("(%p) stub!\n", unknown);
+ return E_NOTIMPL;
+}
+
/******************************************************************
* CreateInstallReferenceEnum (FUSION.@)
*/
return E_INVALIDARG;
len = GetWindowsDirectoryW(windir, MAX_PATH);
- strcpyW(path, windir);
+ lstrcpyW(path, windir);
switch (dwCacheFlags)
{
if (FAILED(hr))
return hr;
- len = sprintfW(path, zapfmt, windir, assembly + 1, nativeimg, version);
+ len = swprintf(path, zapfmt, windir, assembly + 1, nativeimg, version);
break;
}
case ASM_CACHE_GAC:
{
- strcpyW(path + len, assembly);
- len += sizeof(assembly)/sizeof(WCHAR) - 1;
- strcpyW(path + len, gac);
- len += sizeof(gac)/sizeof(WCHAR) - 1;
+ lstrcpyW(path + len, assembly);
+ len += ARRAY_SIZE(assembly) - 1;
+ lstrcpyW(path + len, gac);
+ len += ARRAY_SIZE(gac) - 1;
break;
}
case ASM_CACHE_DOWNLOAD:
return E_FAIL;
}
case ASM_CACHE_ROOT:
- strcpyW(path + len, assembly);
- len += sizeof(assembly)/sizeof(WCHAR) - 1;
+ lstrcpyW(path + len, assembly);
+ len += ARRAY_SIZE(assembly) - 1;
break;
case ASM_CACHE_ROOT_EX:
- strcpyW(path + len, dotnet);
- len += sizeof(dotnet)/sizeof(WCHAR) - 1;
- strcpyW(path + len, assembly);
- len += sizeof(assembly)/sizeof(WCHAR) - 1;
+ lstrcpyW(path + len, dotnet);
+ len += ARRAY_SIZE(dotnet) - 1;
+ lstrcpyW(path + len, assembly);
+ len += ARRAY_SIZE(assembly) - 1;
break;
default:
return E_INVALIDARG;
len++;
if (*pcchPath <= len || !pwzCachePath)
- hr = HRESULT_FROM_WIN32(ERROR_INSUFFICIENT_BUFFER);
+ hr = E_NOT_SUFFICIENT_BUFFER;
else if (pwzCachePath)
- strcpyW(pwzCachePath, path);
+ lstrcpyW(pwzCachePath, path);
*pcchPath = len;
return hr;