From bb36f1a25bd987da4e61c0986084f81ea7aea4c7 Mon Sep 17 00:00:00 2001 From: Hendrik Langer Date: Thu, 19 Jul 2018 01:39:23 +0200 Subject: [PATCH] remove mutex --- README.md | 3 +++ windows-snapshot-tool/bin/freeze.exe | Bin 400845 -> 398830 bytes windows-snapshot-tool/src/main.cpp | 9 +++------ 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 13ead9e..8cd9206 100644 --- a/README.md +++ b/README.md @@ -50,6 +50,9 @@ apt clean echo "dtoverlay=dwc2" >> /boot/config.txt +add "console=tty3" to /boot/cmdline.txt +(console=tty3 loglevel=3 vt.global_cursor_default=0 logo.nologo + copy everything to /opt/freezer/ add to /etc/rc.local: python3 /opt/freezer/display.py diff --git a/windows-snapshot-tool/bin/freeze.exe b/windows-snapshot-tool/bin/freeze.exe index 6d760b55c705dac99edbe23803b5e5c83c90c663..51cd4f12b78a23644443b016c35ba4a1cd8e990c 100755 GIT binary patch delta 18811 zcmcJ0dt4P|{{PIJ89V|i$l;E7fWt*Z1qCE8+eyJFQIFS9QSh!sMui#`D9ziF%dfRoTT*mQ(X7baa?9lV{>;p|OsDc=W}~L z&*!f+je`(N`764=dd z+GneU<4%f}PF(G?LpZKFuyTQw+tx(4Rbmvh>=LJW*%GW=d#c=3 znjvhBkrzs_!sclCw^9MWQ|^%F@s;uvFH66-f)&LLNmi~ia66P#+!D8~fks&4{Gecc zG{?33265b$wqp4WuR4B)oY^HKMvUUPwMBeYs--;?)vA&As>j`{DzO-=L`zkUMQs1c zEN|`-(dB)ANVXKqA9RToCP&FPx|oGaX4%JR6?T~AF-Ehn#4JB$jN?n?O~%-?STo1n zc<$%U&g!h18*TSHJE5(;qc=>wgK%=xBePXuMTM>>-i%7k|wWVMQ`qxr%%UG3lr{eiLTuFjl)wOq7od)}XFV2QAZqNX6 zo4LTsRcC?!h^j2B)V)~>FCgnGyzd1Q`BE{SLyF|NAnh&QrngQhAjzlXt&;dbF?*VR(2PHY3b^0m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l@GJ%7)?-2VcFP|RQe diff --git a/windows-snapshot-tool/src/main.cpp b/windows-snapshot-tool/src/main.cpp index aee8bdc..77318c9 100644 --- a/windows-snapshot-tool/src/main.cpp +++ b/windows-snapshot-tool/src/main.cpp @@ -1,9 +1,6 @@ #include "resource.h" #include "LimitSingleInstance.h" - -CLimitSingleInstance g_SingleInstanceObj(TEXT("Global\\{38593226-AABB-1234-7592-D335AAB6F22A}")); - /*variables*/ UINT WM_TASKBAR = 0; HWND Hwnd; @@ -30,11 +27,11 @@ int WINAPI WinMain (HINSTANCE hThisInstance, LPSTR lpszArgument, int nCmdShow) { - if (g_SingleInstanceObj.IsAnotherInstanceRunning()) + + HWND existingApp = FindWindow(0, szClassName); + if (existingApp) { - HWND existingApp = FindWindow(0, szClassName); SendMessage(existingApp, WM_DESTROY, 0, 0); - //return FALSE; } /* This is the handle for our window */