[Spice-devel] [PATCH qxl-win] display/mspace: fix mspace_max_footprint and mspace_footprint
Alon Levy
alevy at redhat.com
Mon Jun 20 03:59:34 PDT 2011
---
display/mspace.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/display/mspace.c b/display/mspace.c
index ec29fc6..d0ba123 100644
--- a/display/mspace.c
+++ b/display/mspace.c
@@ -2402,8 +2402,9 @@ size_t mspace_footprint(mspace msp) {
mstate ms = (mstate)msp;
if (ok_magic(ms)) {
result = ms->footprint;
+ } else {
+ USAGE_ERROR_ACTION(ms,ms);
}
- USAGE_ERROR_ACTION(ms,ms);
return result;
}
@@ -2413,8 +2414,9 @@ size_t mspace_max_footprint(mspace msp) {
mstate ms = (mstate)msp;
if (ok_magic(ms)) {
result = ms->max_footprint;
+ } else {
+ USAGE_ERROR_ACTION(ms,ms);
}
- USAGE_ERROR_ACTION(ms,ms);
return result;
}
--
1.7.5.2
More information about the Spice-devel
mailing list