Skip to content

Commit

Permalink
version, nullptr check
Browse files Browse the repository at this point in the history
  • Loading branch information
Ciremun committed Dec 17, 2023
1 parent 15e02c0 commit cd86b8a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions freedom/prejit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,9 @@ void save_classmethods_from_addrs()
{
clr_do([](ICLRRuntimeHost *p)
{
DWORD ClassMethodsFromAddrsPtr;
DWORD ClassMethodsFromAddrsPtr = 0;
HRESULT result = ExecuteInDefaultAppDomain(p, clr_module_path, L"Freedom.PreJit", L"GetClassMethodsFromAddrsPtr", L"", &ClassMethodsFromAddrsPtr);
if (result == S_OK)
if (result == S_OK && ClassMethodsFromAddrsPtr != 0)
{
ClassMethod classmethods[classmethod_types_count] = {
{.type = ClassMethodType::Load, .address = beatmap_onload_code_start},
Expand Down
2 changes: 1 addition & 1 deletion include/freedom.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

#include <thread>

#define FR_VERSION "v0.93.2"
#define FR_VERSION "v0.93.3"

extern HWND g_hwnd;
extern HMODULE g_module;
Expand Down
Binary file modified nobuild.exe
Binary file not shown.

0 comments on commit cd86b8a

Please sign in to comment.