mirror of
https://github.com/reactos/reactos.git
synced 2024-09-30 22:47:28 +00:00
[SETUPAPI] Add __REACTOS__ guards around our own code; addendum to r68659 and r73442, CORE-10000 and CORE-12471.
This commit is contained in:
parent
4c29691f6a
commit
7c447a15a0
|
@ -987,15 +987,18 @@ static BOOL do_file_copyW( LPCWSTR source, LPCWSTR target, DWORD style,
|
||||||
{
|
{
|
||||||
BOOL rc = FALSE;
|
BOOL rc = FALSE;
|
||||||
BOOL docopy = TRUE;
|
BOOL docopy = TRUE;
|
||||||
WCHAR TempFile[MAX_PATH];
|
#ifdef __REACTOS__
|
||||||
INT hSource, hTemp;
|
INT hSource, hTemp;
|
||||||
OFSTRUCT OfStruct;
|
OFSTRUCT OfStruct;
|
||||||
WCHAR TempPath[MAX_PATH];
|
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);
|
TRACE("copy %s to %s style 0x%x\n",debugstr_w(source),debugstr_w(target),style);
|
||||||
|
|
||||||
|
#ifdef __REACTOS__
|
||||||
/* Get a temp file name */
|
/* Get a temp file name */
|
||||||
if (!GetTempPathW(sizeof(TempPath) / sizeof(WCHAR), TempPath))
|
if (!GetTempPathW(ARRAYSIZE(TempPath), TempPath))
|
||||||
{
|
{
|
||||||
ERR("GetTempPathW error\n");
|
ERR("GetTempPathW error\n");
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
@ -1033,6 +1036,7 @@ static BOOL do_file_copyW( LPCWSTR source, LPCWSTR target, DWORD style,
|
||||||
LZCopy(hSource, hTemp);
|
LZCopy(hSource, hTemp);
|
||||||
LZClose(hSource);
|
LZClose(hSource);
|
||||||
LZClose(hTemp);
|
LZClose(hTemp);
|
||||||
|
#endif
|
||||||
|
|
||||||
/* before copy processing */
|
/* before copy processing */
|
||||||
if (style & SP_COPY_REPLACEONLY)
|
if (style & SP_COPY_REPLACEONLY)
|
||||||
|
|
Loading…
Reference in a new issue