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
394e0eb1
Commit
394e0eb1
authored
Nov 26, 2000
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Moved UTSelectorOffsetToLinear and UTLinearToSelectorOffset to
dlls/win32s.
parent
69dd0a94
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
21 deletions
+22
-21
win32s16.c
dlls/win32s/win32s16.c
+22
-0
selector.c
memory/selector.c
+0
-21
No files found.
dlls/win32s/win32s16.c
View file @
394e0eb1
...
...
@@ -9,6 +9,7 @@
#include <stdlib.h>
#include "windef.h"
#include "wine/windef16.h"
#include "selectors.h"
#include "debugtools.h"
DEFAULT_DEBUG_CHANNEL
(
dll
);
...
...
@@ -31,3 +32,24 @@ SEGPTR WINAPI StackLinearToSegmented16(WORD w1, WORD w2)
FIXME
(
"(%d,%d):stub.
\n
"
,
w1
,
w2
);
return
(
SEGPTR
)
NULL
;
}
/***********************************************************************
* UTSelectorOffsetToLinear16 (WIN32S16.48)
*
* rough guesswork, but seems to work (I had no "reasonable" docu)
*/
LPVOID
WINAPI
UTSelectorOffsetToLinear16
(
SEGPTR
sptr
)
{
return
PTR_SEG_TO_LIN
(
sptr
);
}
/***********************************************************************
* UTLinearToSelectorOffset16 (WIN32S16.49)
*
* FIXME: I don't know if that's the right way to do linear -> segmented
*/
SEGPTR
WINAPI
UTLinearToSelectorOffset16
(
LPVOID
lptr
)
{
return
(
SEGPTR
)
lptr
;
}
memory/selector.c
View file @
394e0eb1
...
...
@@ -857,27 +857,6 @@ void WINAPI FreeMappedBuffer( CONTEXT86 *context )
}
}
/***********************************************************************
* UTSelectorOffsetToLinear (WIN32S16.48)
*
* rough guesswork, but seems to work (I had no "reasonable" docu)
*/
LPVOID
WINAPI
UTSelectorOffsetToLinear16
(
SEGPTR
sptr
)
{
return
PTR_SEG_TO_LIN
(
sptr
);
}
/***********************************************************************
* UTLinearToSelectorOffset (WIN32S16.49)
*
* FIXME: I don't know if that's the right way to do linear -> segmented
*/
SEGPTR
WINAPI
UTLinearToSelectorOffset16
(
LPVOID
lptr
)
{
return
(
SEGPTR
)
lptr
;
}
#ifdef __i386__
__ASM_GLOBAL_FUNC
(
__get_cs
,
"movw %cs,%ax
\n\t
ret"
)
__ASM_GLOBAL_FUNC
(
__get_ds
,
"movw %ds,%ax
\n\t
ret"
)
...
...
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