Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions Win11DisableRoundedCorners/Win11DisableRoundedCorners.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ int main(int argc, char** argv)
{
BOOL bRestore = FALSE;

if (argc == 2 && strcmp(argv[1], "-restore") == 0)
{
bRestore = TRUE;
}

char szTaskkill[MAX_PATH];
ZeroMemory(
szTaskkill,
Expand Down Expand Up @@ -50,7 +55,6 @@ int main(int argc, char** argv)
MAX_PATH,
"\\uDWM_win11drc.bak"
);
bRestore = fileExists(szOriginalDWM);

char szModifiedDWM[_MAX_PATH];
ZeroMemory(
Expand Down Expand Up @@ -290,4 +294,4 @@ int main(int argc, char** argv)
}
printf("Operation successful.\n");
return 0;
}
}