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
65020b35
Commit
65020b35
authored
May 23, 2000
by
James Juran
Committed by
Alexandre Julliard
May 23, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SearchPathA needs to set the last error to ERROR_FILE_NOT_FOUND when
it does not find the file.
parent
cd132376
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
directory.c
files/directory.c
+7
-2
No files found.
files/directory.c
View file @
65020b35
...
...
@@ -649,7 +649,8 @@ done:
* Failure: Zero
*
* NOTES
* Should call SetLastError(but currently doesn't).
* If the file is not found, calls SetLastError(ERROR_FILE_NOT_FOUND)
* (tested on NT 4.0)
*/
DWORD
WINAPI
SearchPathA
(
LPCSTR
path
,
LPCSTR
name
,
LPCSTR
ext
,
DWORD
buflen
,
LPSTR
buffer
,
LPSTR
*
lastpart
)
...
...
@@ -657,7 +658,11 @@ DWORD WINAPI SearchPathA( LPCSTR path, LPCSTR name, LPCSTR ext, DWORD buflen,
LPSTR
p
,
res
;
DOS_FULL_NAME
full_name
;
if
(
!
DIR_SearchPath
(
path
,
name
,
ext
,
&
full_name
,
TRUE
))
return
0
;
if
(
!
DIR_SearchPath
(
path
,
name
,
ext
,
&
full_name
,
TRUE
))
{
SetLastError
(
ERROR_FILE_NOT_FOUND
);
return
0
;
}
lstrcpynA
(
buffer
,
full_name
.
short_name
,
buflen
);
res
=
full_name
.
long_name
+
strlen
(
DRIVE_GetRoot
(
full_name
.
short_name
[
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