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
b6fc57ec
Commit
b6fc57ec
authored
Jul 24, 2013
by
Piotr Caban
Committed by
Alexandre Julliard
Jul 24, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Add _wmktemp_s implementation.
parent
7d41f9b3
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
44 additions
and
5 deletions
+44
-5
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
file.c
dlls/msvcrt/file.c
+39
-0
msvcrt.spec
dlls/msvcrt/msvcrt.spec
+1
-1
No files found.
dlls/msvcr100/msvcr100.spec
View file @
b6fc57ec
...
...
@@ -1557,7 +1557,7 @@
@ cdecl _wmakepath_s(ptr long wstr wstr wstr wstr) msvcrt._wmakepath_s
@ cdecl _wmkdir(wstr) msvcrt._wmkdir
@ cdecl _wmktemp(wstr) msvcrt._wmktemp
@
stub
_wmktemp_s
@
cdecl _wmktemp_s(wstr long) msvcrt.
_wmktemp_s
@ varargs _wopen(wstr long) msvcrt._wopen
@ cdecl _wperror(wstr) msvcrt._wperror
@ extern _wpgmptr msvcrt._wpgmptr
...
...
dlls/msvcr110/msvcr110.spec
View file @
b6fc57ec
...
...
@@ -1919,7 +1919,7 @@
@ cdecl _wmakepath_s(ptr long wstr wstr wstr wstr) msvcrt._wmakepath_s
@ cdecl _wmkdir(wstr) msvcrt._wmkdir
@ cdecl _wmktemp(wstr) msvcrt._wmktemp
@
stub
_wmktemp_s
@
cdecl _wmktemp_s(wstr long) msvcrt.
_wmktemp_s
@ varargs _wopen(wstr long) msvcrt._wopen
@ cdecl _wperror(wstr) msvcrt._wperror
@ extern _wpgmptr msvcrt._wpgmptr
...
...
dlls/msvcr80/msvcr80.spec
View file @
b6fc57ec
...
...
@@ -1238,7 +1238,7 @@
@ cdecl _wmakepath_s(ptr long wstr wstr wstr wstr) msvcrt._wmakepath_s
@ cdecl _wmkdir(wstr) msvcrt._wmkdir
@ cdecl _wmktemp(wstr) msvcrt._wmktemp
@
stub
_wmktemp_s
@
cdecl _wmktemp_s(wstr long) msvcrt.
_wmktemp_s
@ varargs _wopen(wstr long) msvcrt._wopen
@ cdecl _wperror(wstr) msvcrt._wperror
@ extern _wpgmptr msvcrt._wpgmptr
...
...
dlls/msvcr90/msvcr90.spec
View file @
b6fc57ec
...
...
@@ -1211,7 +1211,7 @@
@ cdecl _wmakepath_s(ptr long wstr wstr wstr wstr) msvcrt._wmakepath_s
@ cdecl _wmkdir(wstr) msvcrt._wmkdir
@ cdecl _wmktemp(wstr) msvcrt._wmktemp
@
stub
_wmktemp_s
@
cdecl _wmktemp_s(wstr long) msvcrt.
_wmktemp_s
@ varargs _wopen(wstr long) msvcrt._wopen
@ cdecl _wperror(wstr) msvcrt._wperror
@ extern _wpgmptr msvcrt._wpgmptr
...
...
dlls/msvcrt/file.c
View file @
b6fc57ec
...
...
@@ -1757,6 +1757,45 @@ char * CDECL MSVCRT__mktemp(char *pattern)
}
/*********************************************************************
* _wmktemp_s (MSVCRT.@)
*/
int
CDECL
MSVCRT__wmktemp_s
(
MSVCRT_wchar_t
*
pattern
,
MSVCRT_size_t
size
)
{
DWORD
len
,
xno
,
id
;
if
(
!
MSVCRT_CHECK_PMT
(
pattern
!=
NULL
))
return
MSVCRT_EINVAL
;
for
(
len
=
0
;
len
<
size
;
len
++
)
if
(
!
pattern
[
len
])
break
;
if
(
!
MSVCRT_CHECK_PMT
(
len
!=
size
&&
len
>=
6
))
{
if
(
size
)
pattern
[
0
]
=
0
;
return
MSVCRT_EINVAL
;
}
for
(
xno
=
1
;
xno
<=
6
;
xno
++
)
if
(
!
MSVCRT_CHECK_PMT
(
pattern
[
len
-
xno
]
==
'X'
))
return
MSVCRT_EINVAL
;
id
=
GetCurrentProcessId
();
for
(
xno
=
1
;
xno
<
6
;
xno
++
)
{
pattern
[
len
-
xno
]
=
id
%
10
+
'0'
;
id
/=
10
;
}
for
(
pattern
[
len
-
6
]
=
'a'
;
pattern
[
len
-
6
]
<=
'z'
;
pattern
[
len
-
6
]
++
)
{
if
(
GetFileAttributesW
(
pattern
)
==
INVALID_FILE_ATTRIBUTES
)
return
0
;
}
pattern
[
0
]
=
0
;
*
MSVCRT__errno
()
=
MSVCRT_EEXIST
;
return
MSVCRT_EEXIST
;
}
/*********************************************************************
* _wmktemp (MSVCRT.@)
*/
MSVCRT_wchar_t
*
CDECL
MSVCRT__wmktemp
(
MSVCRT_wchar_t
*
pattern
)
...
...
dlls/msvcrt/msvcrt.spec
View file @
b6fc57ec
...
...
@@ -1180,7 +1180,7 @@
@ cdecl _wmakepath_s(ptr long wstr wstr wstr wstr)
@ cdecl _wmkdir(wstr) MSVCRT__wmkdir
@ cdecl _wmktemp(wstr) MSVCRT__wmktemp
# stub _wmktemp_s(wstr long)
@ cdecl _wmktemp_s(wstr long) MSVCRT__wmktemp_s
@ varargs _wopen(wstr long) MSVCRT__wopen
# stub _woutput_s
@ stub _wperror(wstr)
...
...
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