Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
60faef8e
Commit
60faef8e
authored
Apr 19, 2013
by
Jactry Zeng
Committed by
Alexandre Julliard
Apr 19, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Added _wfindfirst32 implementation.
parent
7de3f1b5
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
46 additions
and
4 deletions
+46
-4
msvcr100.spec
dlls/msvcr100/msvcr100.spec
+1
-1
msvcr110.spec
dlls/msvcr110/msvcr110.spec
+1
-1
msvcr80.spec
dlls/msvcr80/msvcr80.spec
+1
-1
msvcr90.spec
dlls/msvcr90/msvcr90.spec
+1
-1
dir.c
dlls/msvcrt/dir.c
+41
-0
msvcrt.spec
dlls/msvcrt/msvcrt.spec
+1
-0
No files found.
dlls/msvcr100/msvcr100.spec
View file @
60faef8e
...
...
@@ -1534,7 +1534,7 @@
@ cdecl _wexecvp(wstr ptr) msvcrt._wexecvp
@ cdecl _wexecvpe(wstr ptr ptr) msvcrt._wexecvpe
@ cdecl _wfdopen(long wstr) msvcrt._wfdopen
@
stub
_wfindfirst32
@
cdecl _wfindfirst32(wstr ptr) msvcrt.
_wfindfirst32
@ stub _wfindfirst32i64
@ cdecl _wfindfirst64(wstr ptr) msvcrt._wfindfirst64
@ cdecl _wfindfirst64i32(wstr ptr) msvcrt._wfindfirst64i32
...
...
dlls/msvcr110/msvcr110.spec
View file @
60faef8e
...
...
@@ -1897,7 +1897,7 @@
@ cdecl _wexecvp(wstr ptr) msvcrt._wexecvp
@ cdecl _wexecvpe(wstr ptr ptr) msvcrt._wexecvpe
@ cdecl _wfdopen(long wstr) msvcrt._wfdopen
@
stub
_wfindfirst32
@
cdecl _wfindfirst32(wstr ptr) msvcrt.
_wfindfirst32
@ stub _wfindfirst32i64
@ cdecl _wfindfirst64(wstr ptr) msvcrt._wfindfirst64
@ cdecl _wfindfirst64i32(wstr ptr) msvcrt._wfindfirst64i32
...
...
dlls/msvcr80/msvcr80.spec
View file @
60faef8e
...
...
@@ -1194,7 +1194,7 @@
@ cdecl _wexecvp(wstr ptr) msvcrt._wexecvp
@ cdecl _wexecvpe(wstr ptr ptr) msvcrt._wexecvpe
@ cdecl _wfdopen(long wstr) msvcrt._wfdopen
@
stub
_wfindfirst32
@
cdecl _wfindfirst32(wstr ptr) msvcrt.
_wfindfirst32
@ stub _wfindfirst32i64
@ cdecl _wfindfirst64(wstr ptr) msvcrt._wfindfirst64
@ cdecl _wfindfirst64i32(wstr ptr) msvcrt._wfindfirst64i32
...
...
dlls/msvcr90/msvcr90.spec
View file @
60faef8e
...
...
@@ -1188,7 +1188,7 @@
@ cdecl _wexecvp(wstr ptr) msvcrt._wexecvp
@ cdecl _wexecvpe(wstr ptr ptr) msvcrt._wexecvpe
@ cdecl _wfdopen(long wstr) msvcrt._wfdopen
@
stub
_wfindfirst32
@
cdecl _wfindfirst32(wstr ptr) msvcrt.
_wfindfirst32
@ stub _wfindfirst32i64
@ cdecl _wfindfirst64(wstr ptr) msvcrt._wfindfirst64
@ cdecl _wfindfirst64i32(wstr ptr) msvcrt._wfindfirst64i32
...
...
dlls/msvcrt/dir.c
View file @
60faef8e
...
...
@@ -95,6 +95,26 @@ static void msvcrt_wfttofd( const WIN32_FIND_DATAW *fd, struct MSVCRT__wfinddata
strcpyW
(
ft
->
name
,
fd
->
cFileName
);
}
/* INTERNAL: Translate WIN32_FIND_DATAW to wfinddata32_t */
static
void
msvcrt_wfttofd32
(
const
WIN32_FIND_DATAW
*
fd
,
struct
MSVCRT__wfinddata32_t
*
ft
)
{
DWORD
dw
;
if
(
fd
->
dwFileAttributes
==
FILE_ATTRIBUTE_NORMAL
)
ft
->
attrib
=
0
;
else
ft
->
attrib
=
fd
->
dwFileAttributes
;
RtlTimeToSecondsSince1970
(
(
const
LARGE_INTEGER
*
)
&
fd
->
ftCreationTime
,
&
dw
);
ft
->
time_create
=
dw
;
RtlTimeToSecondsSince1970
(
(
const
LARGE_INTEGER
*
)
&
fd
->
ftLastAccessTime
,
&
dw
);
ft
->
time_access
=
dw
;
RtlTimeToSecondsSince1970
(
(
const
LARGE_INTEGER
*
)
&
fd
->
ftLastWriteTime
,
&
dw
);
ft
->
time_write
=
dw
;
ft
->
size
=
fd
->
nFileSizeLow
;
strcpyW
(
ft
->
name
,
fd
->
cFileName
);
}
/* INTERNAL: Translate WIN32_FIND_DATAA to finddatai64_t */
static
void
msvcrt_fttofdi64
(
const
WIN32_FIND_DATAA
*
fd
,
struct
MSVCRT__finddatai64_t
*
ft
)
{
...
...
@@ -385,6 +405,27 @@ MSVCRT_intptr_t CDECL MSVCRT__wfindfirst(const MSVCRT_wchar_t * fspec, struct MS
}
/*********************************************************************
* _wfindfirst32 (MSVCRT.@)
*
* Unicode version of _findfirst32.
*/
MSVCRT_intptr_t
CDECL
MSVCRT__wfindfirst32
(
const
MSVCRT_wchar_t
*
fspec
,
struct
MSVCRT__wfinddata32_t
*
ft
)
{
WIN32_FIND_DATAW
find_data
;
HANDLE
hfind
;
hfind
=
FindFirstFileW
(
fspec
,
&
find_data
);
if
(
hfind
==
INVALID_HANDLE_VALUE
)
{
msvcrt_set_errno
(
GetLastError
());
return
-
1
;
}
msvcrt_wfttofd32
(
&
find_data
,
ft
);
TRACE
(
":got handle %p
\n
"
,
hfind
);
return
(
MSVCRT_intptr_t
)
hfind
;
}
/*********************************************************************
* _findfirsti64 (MSVCRT.@)
*
* 64-bit version of _findfirst.
...
...
dlls/msvcrt/msvcrt.spec
View file @
60faef8e
...
...
@@ -1153,6 +1153,7 @@
@ cdecl _wexecvpe(wstr ptr ptr)
@ cdecl _wfdopen(long wstr) MSVCRT__wfdopen
@ cdecl _wfindfirst(wstr ptr) MSVCRT__wfindfirst
@ cdecl _wfindfirst32(wstr ptr) MSVCRT__wfindfirst32
@ cdecl _wfindfirst64(wstr ptr) MSVCRT__wfindfirst64
@ cdecl _wfindfirsti64(wstr ptr) MSVCRT__wfindfirsti64
@ cdecl _wfindfirst64i32(wstr ptr) MSVCRT__wfindfirst64i32
...
...
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