From 06df306c5289e4359b5d05f28a27694c2dc0a8b0 Mon Sep 17 00:00:00 2001 From: Tau Date: Sun, 3 Nov 2019 09:44:40 -0500 Subject: [PATCH] Fix some dprintf() message prefixes --- hooklib/gfx.c | 8 ++++---- platform/clock.c | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/hooklib/gfx.c b/hooklib/gfx.c index 5dfdf1a0..531a1013 100644 --- a/hooklib/gfx.c +++ b/hooklib/gfx.c @@ -54,12 +54,12 @@ static IDirect3D9 * WINAPI my_Direct3DCreate9(UINT sdk_ver) IDirect3D9 *api; HRESULT hr; - dprintf("Direct3DCreate9 hook hit\n"); + dprintf("Gfx: Direct3DCreate9 hook hit\n"); api = next_Direct3DCreate9(sdk_ver); if (api == NULL) { - dprintf("next_Direct3DCreate9 returned NULL\n"); + dprintf("Gfx: next_Direct3DCreate9 returned NULL\n"); goto fail; } @@ -67,7 +67,7 @@ static IDirect3D9 * WINAPI my_Direct3DCreate9(UINT sdk_ver) hr = com_proxy_wrap(&proxy, api, sizeof(*api->lpVtbl)); if (FAILED(hr)) { - dprintf("com_proxy_wrap returned %x\n", (int) hr); + dprintf("Gfx: com_proxy_wrap returned %x\n", (int) hr); goto fail; } @@ -97,7 +97,7 @@ static HRESULT STDMETHODCALLTYPE my_CreateDevice( struct com_proxy *proxy; IDirect3D9 *real; - dprintf("IDirect3D9::CreateDevice hook hit\n"); + dprintf("Gfx: IDirect3D9::CreateDevice hook hit\n"); proxy = com_proxy_downcast(self); real = proxy->real; diff --git a/platform/clock.c b/platform/clock.c index e92ce3e1..06473965 100644 --- a/platform/clock.c +++ b/platform/clock.c @@ -180,7 +180,7 @@ static BOOL WINAPI my_GetSystemTime(SYSTEMTIME *out) static DWORD WINAPI my_GetTimeZoneInformation(TIME_ZONE_INFORMATION *tzinfo) { - dprintf("%s\n", __func__); + dprintf("Clock: Returning JST timezone\n"); if (tzinfo == NULL) { SetLastError(ERROR_INVALID_PARAMETER); @@ -203,21 +203,21 @@ static DWORD WINAPI my_GetTimeZoneInformation(TIME_ZONE_INFORMATION *tzinfo) static BOOL WINAPI my_SetLocalTime(SYSTEMTIME *in) { - dprintf("Prevented application from screwing with the local time\n"); + dprintf("Clock: Blocked local time update\n"); return TRUE; } static BOOL WINAPI my_SetSystemTime(SYSTEMTIME *in) { - dprintf("Prevented application from screwing with the system time\n"); + dprintf("Clock: Blocked system time update\n"); return TRUE; } static BOOL WINAPI my_SetTimeZoneInformation(TIME_ZONE_INFORMATION *in) { - dprintf("Prevented application from screwing with the timezone\n"); + dprintf("Clock: Blocked timezone update\n"); return TRUE; }