refactor: fix carrier & templates (modularize)

This commit is contained in:
Dobin Rutishauser
2024-06-17 05:52:56 +02:00
parent 434c099365
commit b5641214e2
10 changed files with 116 additions and 58 deletions
+19 -1
View File
@@ -1,3 +1,18 @@
int mystrcmp(wchar_t* str1, wchar_t* str2) {
int i = 0;
while (str1[i] != L'\0' && str2[i] != L'\0') {
if (str1[i] != str2[i]) {
return 1;
}
i++;
}
return 0;
}
int executionguardrail() {
// Execution Guardrail: Env Check
wchar_t envVarName[] = L"USERPROFILE";
wchar_t tocheck[] = L"C:\\Users\\";
@@ -8,4 +23,7 @@
}
if (mystrcmp(buffer, tocheck) != 0) {
return 6;
}
}
return 0;
}
+3
View File
@@ -0,0 +1,3 @@
int executionguardrail() {
// None
}