Hans Leidekker : wbemprox: Win32_Processor. MaxClockSpeed is expressed in Mhz.

Alexandre Julliard julliard at winehq.org
Mon Sep 17 14:06:33 CDT 2012


Module: wine
Branch: master
Commit: c60fe4751874905ce5b763916a93de7588073c29
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=c60fe4751874905ce5b763916a93de7588073c29

Author: Hans Leidekker <hans at codeweavers.com>
Date:   Mon Sep 17 12:19:13 2012 +0200

wbemprox: Win32_Processor.MaxClockSpeed is expressed in Mhz.

---

 dlls/wbemprox/builtin.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/wbemprox/builtin.c b/dlls/wbemprox/builtin.c
index 7e416a5..41a31f3 100644
--- a/dlls/wbemprox/builtin.c
+++ b/dlls/wbemprox/builtin.c
@@ -783,7 +783,7 @@ static void get_processor_name( WCHAR *name )
 static UINT get_processor_maxclockspeed( void )
 {
     PROCESSOR_POWER_INFORMATION *info;
-    UINT ret = 1000000, size = get_processor_count() * sizeof(PROCESSOR_POWER_INFORMATION);
+    UINT ret = 1000, size = get_processor_count() * sizeof(PROCESSOR_POWER_INFORMATION);
     NTSTATUS status;
 
     if ((info = heap_alloc( size )))




More information about the wine-cvs mailing list