Skip to content

Commit 7c447a1

Browse files
committed
[SETUPAPI] Add __REACTOS__ guards around our own code; addendum to r68659 and r73442, CORE-10000 and CORE-12471.
1 parent 4c29691 commit 7c447a1

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

dll/win32/setupapi/queue.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -987,15 +987,18 @@ static BOOL do_file_copyW( LPCWSTR source, LPCWSTR target, DWORD style,
987987
{
988988
BOOL rc = FALSE;
989989
BOOL docopy = TRUE;
990-
WCHAR TempFile[MAX_PATH];
990+
#ifdef __REACTOS__
991991
INT hSource, hTemp;
992992
OFSTRUCT OfStruct;
993993
WCHAR TempPath[MAX_PATH];
994+
WCHAR TempFile[MAX_PATH];
995+
#endif
994996

995997
TRACE("copy %s to %s style 0x%x\n",debugstr_w(source),debugstr_w(target),style);
996998

999+
#ifdef __REACTOS__
9971000
/* Get a temp file name */
998-
if (!GetTempPathW(sizeof(TempPath) / sizeof(WCHAR), TempPath))
1001+
if (!GetTempPathW(ARRAYSIZE(TempPath), TempPath))
9991002
{
10001003
ERR("GetTempPathW error\n");
10011004
return FALSE;
@@ -1033,6 +1036,7 @@ static BOOL do_file_copyW( LPCWSTR source, LPCWSTR target, DWORD style,
10331036
LZCopy(hSource, hTemp);
10341037
LZClose(hSource);
10351038
LZClose(hTemp);
1039+
#endif
10361040

10371041
/* before copy processing */
10381042
if (style & SP_COPY_REPLACEONLY)

0 commit comments

Comments
 (0)