1
0
mirror of https://gitea.tendokyu.moe/Hay1tsme/segatools.git synced 2024-11-12 04:40:46 +01:00

divahook/slider.c: Propagate HRESULT

This commit is contained in:
Tau 2019-11-05 18:03:16 -05:00
parent dcdc19086d
commit bf90450539
2 changed files with 5 additions and 3 deletions

View File

@ -37,7 +37,7 @@ static struct uart slider_uart;
static uint8_t slider_written_bytes[520];
static uint8_t slider_readable_bytes[520];
void slider_hook_init(void)
HRESULT slider_hook_init(void)
{
InitializeCriticalSection(&slider_lock);
@ -47,7 +47,7 @@ void slider_hook_init(void)
slider_uart.readable.bytes = slider_readable_bytes;
slider_uart.readable.nbytes = sizeof(slider_readable_bytes);
iohook_push_handler(slider_handle_irp);
return iohook_push_handler(slider_handle_irp);
}
static HRESULT slider_handle_irp(struct irp *irp)

View File

@ -1,3 +1,5 @@
#pragma once
void slider_hook_init(void);
#include <windows.h>
HRESULT slider_hook_init(void);