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
2e52589d
Commit
2e52589d
authored
Nov 01, 1998
by
Uwe Bonnes
Committed by
Alexandre Julliard
Nov 01, 1998
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Give tempfile a different name even if they are created in the same
second. Removed some fixmes from the ShareDeny stuff.
parent
5c6fc1bb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
file.c
files/file.c
+10
-3
No files found.
files/file.c
View file @
2e52589d
...
...
@@ -415,7 +415,8 @@ static BOOL32 FILE_ShareDeny( int mode, int oldmode)
return
TRUE
;
test_ro_int24:
FIXME
(
file
,
"test if file is RO missing
\n
"
);
if
(
oldmode
&
OF_READ
)
return
FALSE
;
/* Fall through */
fail_int24:
FIXME
(
file
,
"generate INT24 missing
\n
"
);
...
...
@@ -424,9 +425,11 @@ fail_int24:
return
TRUE
;
test_ro_err05:
FIXME
(
file
,
"test if file is RO missing
\n
"
);
if
(
oldmode
&
OF_READ
)
return
FALSE
;
/* fall through */
fail_error05:
TRACE
(
file
,
"Access Denied, oldmode 0x%02x mode 0x%02x
\n
"
,
oldmode
,
mode
);
DOS_ERROR
(
ER_AccessDenied
,
EC_AccessDenied
,
SA_Abort
,
EL_Disk
);
return
TRUE
;
}
...
...
@@ -944,13 +947,17 @@ UINT16 WINAPI GetTempFileName16( BYTE drive, LPCSTR prefix, UINT16 unique,
UINT32
WINAPI
GetTempFileName32A
(
LPCSTR
path
,
LPCSTR
prefix
,
UINT32
unique
,
LPSTR
buffer
)
{
static
UINT32
unique_temp
;
DOS_FULL_NAME
full_name
;
int
i
;
LPSTR
p
;
UINT32
num
=
unique
?
(
unique
&
0xffff
)
:
time
(
NULL
)
&
0xffff
;
UINT32
num
;
if
(
!
path
||
!
prefix
||
!
buffer
)
return
0
;
if
(
!
unique_temp
)
unique_temp
=
time
(
NULL
)
&
0xffff
;
num
=
unique
?
(
unique
&
0xffff
)
:
(
unique_temp
++
&
0xffff
);
strcpy
(
buffer
,
path
);
p
=
buffer
+
strlen
(
buffer
);
...
...
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