Skip to content

Commit aaea6ab

Browse files
committed
fix spelling
1 parent 426a54a commit aaea6ab

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/unrealsdk/game/bl1/steamdrm.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ const constexpr std::chrono::seconds FALLBACK_DELAY{5};
2525
// NOLINTBEGIN(readability-identifier-naming)
2626

2727
// NOLINTNEXTLINE(modernize-use-using) - need a typedef for calling conventions in msvc
28-
typedef void(WINAPI* GetStatupInfoA_func)(LPSTARTUPINFOA);
29-
GetStatupInfoA_func GetStatupInfoA_ptr;
28+
typedef void(WINAPI* GetStartupInfoA_func)(LPSTARTUPINFOA);
29+
GetStartupInfoA_func GetStartupInfoA_ptr;
3030

3131
void GetStartupInfoA_hook(LPSTARTUPINFOA lpStartupInfo) {
32-
GetStatupInfoA_ptr(lpStartupInfo);
32+
GetStartupInfoA_ptr(lpStartupInfo);
3333

3434
static_assert(decltype(ready)::is_always_lock_free, "need to lock on checking ready flag too");
3535
if (ready.load()) {
@@ -63,7 +63,7 @@ void BL1Hook::wait_for_steam_drm(void) {
6363

6464
status = MH_CreateHook(reinterpret_cast<LPVOID>(&GetStartupInfoA),
6565
reinterpret_cast<LPVOID>(&GetStartupInfoA_hook),
66-
reinterpret_cast<LPVOID*>(&GetStatupInfoA_ptr));
66+
reinterpret_cast<LPVOID*>(&GetStartupInfoA_ptr));
6767
if (status != MH_OK) {
6868
LOG(ERROR, "Failed to create GetStartupInfoA hook: {:x}",
6969
static_cast<uint32_t>(status));

0 commit comments

Comments
 (0)