[SETUPAPI] Add __REACTOS__ guards around our own code; addendum to r68659 and r73442, CORE-10000 and CORE-12471.

This commit is contained in:
Hermès Bélusca-Maïto 2017-12-31 02:28:50 +01:00
parent 4c29691f6a
commit 7c447a15a0
No known key found for this signature in database
GPG key ID: 3B2539C65E7B93D0

View file

@ -987,15 +987,18 @@ static BOOL do_file_copyW( LPCWSTR source, LPCWSTR target, DWORD style,
{
BOOL rc = FALSE;
BOOL docopy = TRUE;
WCHAR TempFile[MAX_PATH];
#ifdef __REACTOS__
INT hSource, hTemp;
OFSTRUCT OfStruct;
WCHAR TempPath[MAX_PATH];
WCHAR TempFile[MAX_PATH];
#endif
TRACE("copy %s to %s style 0x%x\n",debugstr_w(source),debugstr_w(target),style);
#ifdef __REACTOS__
/* Get a temp file name */
if (!GetTempPathW(sizeof(TempPath) / sizeof(WCHAR), TempPath))
if (!GetTempPathW(ARRAYSIZE(TempPath), TempPath))
{
ERR("GetTempPathW error\n");
return FALSE;
@ -1033,6 +1036,7 @@ static BOOL do_file_copyW( LPCWSTR source, LPCWSTR target, DWORD style,
LZCopy(hSource, hTemp);
LZClose(hSource);
LZClose(hTemp);
#endif
/* before copy processing */
if (style & SP_COPY_REPLACEONLY)