Skip to content

Commit

Permalink
removed todo I changed my mind about
Browse files Browse the repository at this point in the history
  • Loading branch information
drew6017 committed Apr 9, 2020
1 parent fd48dec commit 7470de7
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,6 @@ int main() {

int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE, LPSTR, int) {
// the handle should equal NULL here if creating the mutex failed. however, it doesnt so I just check for the error code
// TODO maybe try OpenMutexA instead and check if != null per success
CreateMutexA(0, FALSE, "Global\\AutoRunService"); // or could be Local if I wanted multiple users to be running this at a time
if (GetLastError() == ERROR_ALREADY_EXISTS) {
P_FATAL_ERROR("The AutoRun application is already running. See the system "
Expand Down

0 comments on commit 7470de7

Please sign in to comment.