Skip to content

Commit

Permalink
Update main.c
Browse files Browse the repository at this point in the history
Code beautified.
  • Loading branch information
cregx authored Feb 13, 2023
1 parent 788b4e7 commit 3f1d59e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wimbckup/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ const LPTSTR szTTRefreshDrives = TEXT("Refresh list of drives");
const DWORD RUN_ACTION_SHELLEX_FAILED = 0xFFFFFFFFFFFFFFFF; // dec => -1 (Function internal error, use GetLastError())
const DWORD RUN_ACTION_SUCCESSFUL = 0x400; // dec => 1024 (Successful processing of the batch file.)
const DWORD RUN_ACTION_CANCELLED = 0xC000013A; // dec => 3221225786 (Cancellation of the batch job by the user,
// e.g. because the user has clicked the X button.)
// e.g. because the user has clicked the X button.)

// Main function.
int WINAPI _tWinMain(HINSTANCE hInst, HINSTANCE h0, LPTSTR lpCmdLine, int nCmdShow)
Expand Down Expand Up @@ -628,7 +628,7 @@ void onClick_ButtonLog(HWND hwnd)
TCHAR * pEnv = NULL; // Helper pointer to the final obtained %-cleaned and zero terminated environment variable, e.g. "systemdrive".
TCHAR * pszEnv = NULL; // String with the name of the environment variable (null terminated).
TCHAR * pszEnvVal = NULL; // String with the value of the enviornment variable (null terminated).
TCHAR * pszNewDismLogFilePath = NULL; // String with the newly composed full path to the log file (null terminated).
TCHAR * pszNewDismLogFilePath = NULL; // String with the newly composed full path to the log file (null terminated).

// Allocate needed memory. Don't forget to free the memory!
pszEnv = (TCHAR *) calloc(MAX_BUFFER * 2, sizeof(TCHAR));
Expand Down

0 comments on commit 3f1d59e

Please sign in to comment.