Set default values in GetSystemPowerStatus

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


Florian Friedrich <friedrich at hooster.de>

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).

Screenshot: http://florian.hooster.de/battery.png
---
 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 : http://www.winehq.org/pipermail/wine-patches/attachments/20080505/bce40456/attachment.bin 


More information about the wine-patches mailing list