We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ee55bf2 commit c24ff2dCopy full SHA for c24ff2d
src/0.3.7-R1/common.cpp
@@ -11,5 +11,6 @@
11
#include <Windows.h>
12
13
unsigned long SAMP::GetHandle() {
14
- return (unsigned long)GetModuleHandleA("samp.dll");
+ static unsigned long dwHandle = (unsigned long)GetModuleHandleA("samp.dll");
15
+ return dwHandle;
16
}
0 commit comments