From 3e283ea9f17aa779832db065b2ecc4b19cf03e83 Mon Sep 17 00:00:00 2001 From: mathieui Date: Thu, 21 Jan 2016 21:16:51 +0100 Subject: More asterisks --- Source/Core/Common/ucrtFreadWorkaround.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Source/Core/Common/ucrtFreadWorkaround.cpp') diff --git a/Source/Core/Common/ucrtFreadWorkaround.cpp b/Source/Core/Common/ucrtFreadWorkaround.cpp index cecab2b4ff..ea4baa2970 100644 --- a/Source/Core/Common/ucrtFreadWorkaround.cpp +++ b/Source/Core/Common/ucrtFreadWorkaround.cpp @@ -8,7 +8,7 @@ #include struct PatchInfo { - const wchar_t *module_name; + const wchar_t* module_name; u32 checksum; u32 rva; u32 length; @@ -35,7 +35,7 @@ bool ApplyPatch(const PatchInfo &patch) { return false; } - void *patch_addr = (void *)((uintptr_t)module + patch.rva); + void* patch_addr = (void *)((uintptr_t)module + patch.rva); size_t patch_size = patch.length; DWORD old_protect; -- cgit v1.2.3 From f15ffda5a7518cb87a09f301deaeffab0723ec27 Mon Sep 17 00:00:00 2001 From: mathieui Date: Thu, 21 Jan 2016 21:27:56 +0100 Subject: Correct ampersands as well --- Source/Core/Common/ucrtFreadWorkaround.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Source/Core/Common/ucrtFreadWorkaround.cpp') diff --git a/Source/Core/Common/ucrtFreadWorkaround.cpp b/Source/Core/Common/ucrtFreadWorkaround.cpp index ea4baa2970..33d26ce754 100644 --- a/Source/Core/Common/ucrtFreadWorkaround.cpp +++ b/Source/Core/Common/ucrtFreadWorkaround.cpp @@ -23,7 +23,7 @@ struct PatchInfo { { L"ucrtbased.dll", 0x1C1915 , 0x91905, 5 }, }; -bool ApplyPatch(const PatchInfo &patch) { +bool ApplyPatch(const PatchInfo& patch) { auto module = GetModuleHandleW(patch.module_name); if (module == nullptr) { -- cgit v1.2.3 From 4b06e927315aeaae5294eb46925bdb9b8dd301dc Mon Sep 17 00:00:00 2001 From: mathieui Date: Thu, 21 Jan 2016 22:18:18 +0100 Subject: A few more asterisks, mostly casts --- Source/Core/Common/ucrtFreadWorkaround.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Source/Core/Common/ucrtFreadWorkaround.cpp') diff --git a/Source/Core/Common/ucrtFreadWorkaround.cpp b/Source/Core/Common/ucrtFreadWorkaround.cpp index 33d26ce754..549c2d9ac5 100644 --- a/Source/Core/Common/ucrtFreadWorkaround.cpp +++ b/Source/Core/Common/ucrtFreadWorkaround.cpp @@ -35,7 +35,7 @@ bool ApplyPatch(const PatchInfo& patch) { return false; } - void* patch_addr = (void *)((uintptr_t)module + patch.rva); + void* patch_addr = (void*)((uintptr_t)module + patch.rva); size_t patch_size = patch.length; DWORD old_protect; -- cgit v1.2.3