Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
d8685497
Commit
d8685497
authored
Nov 17, 2003
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Moved toolhelp.h to dlls/kernel.
parent
f9be2f3d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
10 deletions
+26
-10
kernel32.spec
dlls/kernel/kernel32.spec
+0
-1
toolhelp.h
dlls/kernel/toolhelp.h
+0
-0
int31.c
dlls/winedos/int31.c
+26
-9
No files found.
dlls/kernel/kernel32.spec
View file @
d8685497
...
...
@@ -1111,7 +1111,6 @@
@ stdcall LocalLock16(long)
@ stdcall LocalUnlock16(long)
@ stdcall LockResource16(long)
@ stdcall MemManInfo16(ptr)
@ stdcall SelectorAccessRights16(long long long)
@ stdcall SetSelectorBase(long long)
@ stdcall SetSelectorLimit16(long long)
...
...
include
/toolhelp.h
→
dlls/kernel
/toolhelp.h
View file @
d8685497
File moved
dlls/winedos/int31.c
View file @
d8685497
...
...
@@ -35,7 +35,6 @@
#include "wine/debug.h"
#include "wine/exception.h"
#include "thread.h"
#include "toolhelp.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
int31
);
...
...
@@ -1193,18 +1192,36 @@ void WINAPI DOSVM_Int31Handler( CONTEXT86 *context )
case
0x0500
:
/* Get free memory information */
TRACE
(
"get free memory information
\n
"
);
{
MEMMANINFO
mmi
;
void
*
ptr
=
CTX_SEG_OFF_TO_LIN
(
context
,
context
->
SegEs
,
context
->
Edi
);
mmi
.
dwSize
=
sizeof
(
mmi
);
MemManInfo16
(
&
mmi
);
MEMORYSTATUS
status
;
/* the layout is just the same as MEMMANINFO, but without
* the dwSize entry.
*/
memcpy
(
ptr
,
((
char
*
)
&
mmi
)
+
4
,
sizeof
(
mmi
)
-
4
);
struct
{
DWORD
dwLargestFreeBlock
;
DWORD
dwMaxPagesAvailable
;
DWORD
dwMaxPagesLockable
;
DWORD
dwTotalLinearSpace
;
DWORD
dwTotalUnlockedPages
;
DWORD
dwFreePages
;
DWORD
dwTotalPages
;
DWORD
dwFreeLinearSpace
;
DWORD
dwSwapFilePages
;
WORD
wPageSize
;
}
*
info
=
CTX_SEG_OFF_TO_LIN
(
context
,
context
->
SegEs
,
context
->
Edi
);
GlobalMemoryStatus
(
&
status
);
info
->
wPageSize
=
getpagesize
();
info
->
dwLargestFreeBlock
=
status
.
dwAvailVirtual
;
info
->
dwMaxPagesAvailable
=
info
->
dwLargestFreeBlock
/
info
->
wPageSize
;
info
->
dwMaxPagesLockable
=
info
->
dwMaxPagesAvailable
;
info
->
dwTotalLinearSpace
=
status
.
dwTotalVirtual
/
info
->
wPageSize
;
info
->
dwTotalUnlockedPages
=
info
->
dwTotalLinearSpace
;
info
->
dwFreePages
=
info
->
dwMaxPagesAvailable
;
info
->
dwTotalPages
=
info
->
dwTotalLinearSpace
;
info
->
dwFreeLinearSpace
=
info
->
dwMaxPagesAvailable
;
info
->
dwSwapFilePages
=
status
.
dwTotalPageFile
/
info
->
wPageSize
;
break
;
}
...
...
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