Commit 2c37baba authored by Rob Shearman's avatar Rob Shearman Committed by Alexandre Julliard

winedos: Compare HRESULT value explicitly against S_OK instead of using an…

winedos: Compare HRESULT value explicitly against S_OK instead of using an implicit != 0 comparison.
parent d31ce9ae
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment