Set default values in GetSystemPowerStatus

Florian Friedrich friedrich at
Mon May 5 13:53:29 CDT 2008

Florian Friedrich <friedrich at>

Fill the LPSYSTEM_POWER_STATUS-structure in the function
GetSystemPowerStatus with error-values, even if we return FALSE. This is
a fix for bad devs, who don't think, that this function could return
FALSE and who use the structure anyways.

This fixes an annoying bug in the game "The Movies". Without this fix,
the game shows a flashing battery icon at some parts of the game (in the
middle of the screen).

 dlls/kernel32/powermgnt.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 6885104f0323af30fcb47c903ec9294b310930a6.diff
Type: text/x-patch
Size: 616 bytes
Desc: not available
Url : 

More information about the wine-patches mailing list