mirror of
https://github.com/Auties00/Reboot-Launcher.git
synced 2026-01-13 11:12:23 +01:00
9.0.2
This commit is contained in:
@@ -17,7 +17,7 @@ auto bdw = bitsdojo_window_configure(BDW_CUSTOM_FRAME | BDW_HIDE_ON_STARTUP);
|
||||
#include <fcntl.h>
|
||||
|
||||
bool IsAlreadyOpen(){
|
||||
HANDLE hMutex = CreateMutexW(NULL, TRUE, L"RebootLauncherMutex");
|
||||
HANDLE hMutex = CreateMutexW(NULL, TRUE, L"RebootLauncherNewMutex");
|
||||
if (hMutex == NULL && GetLastError() == ERROR_ALREADY_EXISTS) {
|
||||
HWND hwndExisting = FindWindowW(NULL, L"Reboot Launcher");
|
||||
if (hwndExisting != NULL) {
|
||||
|
||||
@@ -121,7 +121,7 @@ bool Win32Window::CreateAndShow(const std::wstring &title,
|
||||
HWND window = CreateWindow(
|
||||
window_class,
|
||||
title.c_str(),
|
||||
WS_OVERLAPPEDWINDOW,
|
||||
WS_OVERLAPPED | WS_BORDER | WS_THICKFRAME,
|
||||
Scale(origin.x, scale_factor),
|
||||
Scale(origin.y, scale_factor),
|
||||
Scale(size.width, scale_factor),
|
||||
|
||||
Reference in New Issue
Block a user