Skip to content

Commit

Permalink
fix syntax error
Browse files Browse the repository at this point in the history
  • Loading branch information
R3nzTheCodeGOD committed Jan 2, 2022
1 parent dd51c45 commit e787ffe
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions SpotifyInternal/dllmain.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include <Windows.h>
#pragma warning(disable:4326)
#include <Windows.h>
#include <Psapi.h>

void WINAPI load_api(LPVOID* destination, LPCSTR api_name) noexcept
Expand All @@ -12,15 +13,12 @@ void WINAPI load_api(LPVOID* destination, LPCSTR api_name) noexcept
char S_##N[] = "" # N; \
extern "C" __declspec(dllexport) __declspec(naked) void N ## () \
{ \
__asm \
{ \
pushad \
push offset S_##N \
push offset _##N \
call load_api \
popad \
jmp [_##N] \
} \
__asm pushad \
__asm push offset S_##N \
__asm push offset _##N \
__asm call load_api \
__asm popad \
__asm jmp [_##N] \
} \

API_EXPORT_ORIG(ClearReportsBetween_ExportThunk)
Expand Down

0 comments on commit e787ffe

Please sign in to comment.