Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
8bed7bb6
Commit
8bed7bb6
authored
May 16, 2006
by
Andrew Ziem
Committed by
Alexandre Julliard
May 17, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel: Fix path test to pass on 95 and 98.
parent
21196a08
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
8 deletions
+12
-8
path.c
dlls/kernel/tests/path.c
+12
-8
No files found.
dlls/kernel/tests/path.c
View file @
8bed7bb6
...
@@ -339,14 +339,18 @@ static void test_InitPathA(CHAR *newdir, CHAR *curDrive, CHAR *otherDrive)
...
@@ -339,14 +339,18 @@ static void test_InitPathA(CHAR *newdir, CHAR *curDrive, CHAR *otherDrive)
newdir
,
tmpstr
,
tmpstr1
,
id
);
newdir
,
tmpstr
,
tmpstr1
,
id
);
ok
(
DeleteFileA
(
newdir
),
"Couldn't delete the temporary file we just created
\n
"
);
ok
(
DeleteFileA
(
newdir
),
"Couldn't delete the temporary file we just created
\n
"
);
ok
((
id
=
GetTempFileNameA
(
tmppath
,
NULL
,
0
,
newdir
)),
"GetTempFileNameA failed
\n
"
);
id
=
GetTempFileNameA
(
tmppath
,
NULL
,
0
,
newdir
);
sprintf
(
tmpstr
,
"%.4x.tmp"
,
id
&
0xffff
);
/* Windows 95, 98 return 0==id, while Windows 2000, XP return 0!=id */
sprintf
(
tmpstr1
,
"%x.tmp"
,
id
&
0xffff
);
if
(
id
)
ok
(
lstrcmpiA
(
newdir
+
lstrlenA
(
tmppath
),
tmpstr
)
==
0
||
{
lstrcmpiA
(
newdir
+
lstrlenA
(
tmppath
),
tmpstr1
)
==
0
,
sprintf
(
tmpstr
,
"%.4x.tmp"
,
id
&
0xffff
);
"GetTempFileNameA returned '%s' which doesn't match '%s' or '%s'. id=%x
\n
"
,
sprintf
(
tmpstr1
,
"%x.tmp"
,
id
&
0xffff
);
newdir
,
tmpstr
,
tmpstr1
,
id
);
ok
(
lstrcmpiA
(
newdir
+
lstrlenA
(
tmppath
),
tmpstr
)
==
0
||
ok
(
DeleteFileA
(
newdir
),
"Couldn't delete the temporary file we just created
\n
"
);
lstrcmpiA
(
newdir
+
lstrlenA
(
tmppath
),
tmpstr1
)
==
0
,
"GetTempFileNameA returned '%s' which doesn't match '%s' or '%s'. id=%x
\n
"
,
newdir
,
tmpstr
,
tmpstr1
,
id
);
ok
(
DeleteFileA
(
newdir
),
"Couldn't delete the temporary file we just created
\n
"
);
}
/* Find first valid drive letter that is neither newdir[0] nor curDrive */
/* Find first valid drive letter that is neither newdir[0] nor curDrive */
drives
=
GetLogicalDrives
()
&
~
(
1
<<
(
newdir
[
0
]
-
'A'
));
drives
=
GetLogicalDrives
()
&
~
(
1
<<
(
newdir
[
0
]
-
'A'
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment