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
af026d7c
Commit
af026d7c
authored
Oct 21, 1998
by
Marcus Meissner
Committed by
Alexandre Julliard
Oct 21, 1998
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Support anon shared mappings using temporary files (wont be deleted
yet).
parent
7ce0684f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
8 deletions
+22
-8
virtual.c
memory/virtual.c
+22
-8
No files found.
memory/virtual.c
View file @
af026d7c
...
...
@@ -1133,15 +1133,29 @@ HANDLE32 WINAPI CreateFileMapping32A(
if
(
hFile
==
INVALID_HANDLE_VALUE32
)
{
FIXME
(
virtual
,
"shared anon mapping not correctly supported!
\n
"
);
if
(
!
size_high
&&
!
size_low
)
{
SetLastError
(
ERROR_INVALID_PARAMETER
);
return
0
;
}
obj
=
NULL
;
FIXME
(
virtual
,
"shared anon mapping (%s, size %d) not correctly supported!
\n
"
,
debugstr_a
(
name
),
size_low
);
if
(
!
size_high
&&
!
size_low
)
{
SetLastError
(
ERROR_INVALID_PARAMETER
);
return
0
;
}
obj
=
NULL
;
if
(
name
)
{
CHAR
buf
[
260
];
GetTempPath32A
(
260
,
buf
);
GetTempFileName32A
(
buf
,
"wine"
,
260
,
buf
);
hFile
=
CreateFile32A
(
buf
,
GENERIC_READ
|
GENERIC_WRITE
,
0
,
NULL
,
OPEN_ALWAYS
,
0
,
0
);
if
(
hFile
==
INVALID_HANDLE_VALUE32
)
FIXME
(
virtual
,
"could not create temp. file for anon shared mapping: reason was 0x%08lx
\n
"
,
GetLastError
());
else
{
SetFilePointer
(
hFile
,
size_low
,
&
size_high
,
FILE_BEGIN
);
SetEndOfFile
(
hFile
);
}
}
}
else
/* We have a file */
if
(
hFile
!=
INVALID_HANDLE_VALUE32
)
/* We have a file */
{
BY_HANDLE_FILE_INFORMATION
info
;
DWORD
access
=
GENERIC_READ
;
...
...
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