Rob Shearman : winedos: Compare HRESULT value explicitly against S_OK instead of using an implicit ! = 0 comparison.
Module: wine Branch: master Commit: 2c37baba0a4c692a93beef69e7456570a64923b2 URL: http://source.winehq.org/git/wine.git/?a=commit;h=2c37baba0a4c692a93beef69e7... Author: Rob Shearman <robertshearman(a)gmail.com> Date: Wed Oct 1 11:20:53 2008 +0100 winedos: Compare HRESULT value explicitly against S_OK instead of using an implicit != 0 comparison. --- dlls/winedos/vga.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/dlls/winedos/vga.c b/dlls/winedos/vga.c index 288f867..96cadb9 100644 --- a/dlls/winedos/vga.c +++ b/dlls/winedos/vga.c @@ -459,7 +459,8 @@ static void WINAPI VGA_DoSetMode(ULONG_PTR arg) lpddraw=NULL; return; } - if ((res=IDirectDrawPalette_SetEntries(lpddpal,0,0,256,vga_def_palette))) { + res=IDirectDrawPalette_SetEntries(lpddpal,0,0,256,vga_def_palette); + if (res != S_OK) { ERR("Could not set default palette entries (res = 0x%x)\n", res); }
participants (1)
-
Alexandre Julliard