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
ef14808c
Commit
ef14808c
authored
Sep 21, 2023
by
Hans Leidekker
Committed by
Alexandre Julliard
Sep 27, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wbemprox: Fix Win32_OperatingSystem.TotalVirtual/VisibleMemorySize.
parent
97114ac8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
builtin.c
dlls/wbemprox/builtin.c
+11
-2
No files found.
dlls/wbemprox/builtin.c
View file @
ef14808c
...
...
@@ -1615,6 +1615,15 @@ static UINT64 get_available_physical_memory(void)
return
status
.
ullAvailPhys
;
}
static
UINT64
get_total_virtual_memory
(
void
)
{
MEMORYSTATUSEX
status
;
status
.
dwLength
=
sizeof
(
status
);
if
(
!
GlobalMemoryStatusEx
(
&
status
))
return
1024
*
1024
*
1024
;
return
status
.
ullTotalVirtual
;
}
static
UINT64
get_available_virtual_memory
(
void
)
{
MEMORYSTATUSEX
status
;
...
...
@@ -3786,8 +3795,8 @@ static enum fill_status fill_operatingsystem( struct table *table, const struct
rec
->
suitemask
=
272
;
/* Single User + Terminal */
rec
->
systemdirectory
=
get_systemdirectory
();
rec
->
systemdrive
=
get_systemdrive
();
rec
->
totalvirtualmemorysize
=
get_total_
physic
al_memory
()
/
1024
;
rec
->
totalvisiblememorysize
=
rec
->
totalvirtualmemorysize
;
rec
->
totalvirtualmemorysize
=
get_total_
virtu
al_memory
()
/
1024
;
rec
->
totalvisiblememorysize
=
get_total_physical_memory
()
/
1024
;
rec
->
version
=
get_osversion
(
&
ver
);
rec
->
windowsdirectory
=
get_windowsdirectory
();
if
(
!
match_row
(
table
,
row
,
cond
,
&
status
))
free_row_values
(
table
,
row
);
...
...
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