Fix some dprintf() message prefixes

This commit is contained in:
Tau 2019-11-03 09:44:40 -05:00
parent 46e5c6127d
commit 06df306c52
2 changed files with 8 additions and 8 deletions

View File

@ -54,12 +54,12 @@ static IDirect3D9 * WINAPI my_Direct3DCreate9(UINT sdk_ver)
IDirect3D9 *api; IDirect3D9 *api;
HRESULT hr; HRESULT hr;
dprintf("Direct3DCreate9 hook hit\n"); dprintf("Gfx: Direct3DCreate9 hook hit\n");
api = next_Direct3DCreate9(sdk_ver); api = next_Direct3DCreate9(sdk_ver);
if (api == NULL) { if (api == NULL) {
dprintf("next_Direct3DCreate9 returned NULL\n"); dprintf("Gfx: next_Direct3DCreate9 returned NULL\n");
goto fail; goto fail;
} }
@ -67,7 +67,7 @@ static IDirect3D9 * WINAPI my_Direct3DCreate9(UINT sdk_ver)
hr = com_proxy_wrap(&proxy, api, sizeof(*api->lpVtbl)); hr = com_proxy_wrap(&proxy, api, sizeof(*api->lpVtbl));
if (FAILED(hr)) { if (FAILED(hr)) {
dprintf("com_proxy_wrap returned %x\n", (int) hr); dprintf("Gfx: com_proxy_wrap returned %x\n", (int) hr);
goto fail; goto fail;
} }
@ -97,7 +97,7 @@ static HRESULT STDMETHODCALLTYPE my_CreateDevice(
struct com_proxy *proxy; struct com_proxy *proxy;
IDirect3D9 *real; IDirect3D9 *real;
dprintf("IDirect3D9::CreateDevice hook hit\n"); dprintf("Gfx: IDirect3D9::CreateDevice hook hit\n");
proxy = com_proxy_downcast(self); proxy = com_proxy_downcast(self);
real = proxy->real; real = proxy->real;

View File

@ -180,7 +180,7 @@ static BOOL WINAPI my_GetSystemTime(SYSTEMTIME *out)
static DWORD WINAPI my_GetTimeZoneInformation(TIME_ZONE_INFORMATION *tzinfo) static DWORD WINAPI my_GetTimeZoneInformation(TIME_ZONE_INFORMATION *tzinfo)
{ {
dprintf("%s\n", __func__); dprintf("Clock: Returning JST timezone\n");
if (tzinfo == NULL) { if (tzinfo == NULL) {
SetLastError(ERROR_INVALID_PARAMETER); SetLastError(ERROR_INVALID_PARAMETER);
@ -203,21 +203,21 @@ static DWORD WINAPI my_GetTimeZoneInformation(TIME_ZONE_INFORMATION *tzinfo)
static BOOL WINAPI my_SetLocalTime(SYSTEMTIME *in) 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; return TRUE;
} }
static BOOL WINAPI my_SetSystemTime(SYSTEMTIME *in) 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; return TRUE;
} }
static BOOL WINAPI my_SetTimeZoneInformation(TIME_ZONE_INFORMATION *in) 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; return TRUE;
} }