Skip to content

Commit d9b3003

Browse files
committed
small style update
1 parent fe37c18 commit d9b3003

File tree

1 file changed

+20
-4
lines changed

1 file changed

+20
-4
lines changed

main.c

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,19 @@
11
#include "main.h"
22

3-
static HANDLE ds_open_handle(PWCHAR pwPath)
3+
static
4+
HANDLE
5+
ds_open_handle(
6+
PWCHAR pwPath
7+
)
48
{
59
return CreateFileW(pwPath, GENERIC_READ | SYNCHRONIZE | DELETE, FILE_SHARE_READ, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);
610
}
711

8-
static BOOL ds_rename_handle(HANDLE hHandle)
12+
static
13+
BOOL
14+
ds_rename_handle(
15+
HANDLE hHandle
16+
)
917
{
1018
FILE_RENAME_INFO fRename;
1119
RtlSecureZeroMemory(&fRename, sizeof(fRename));
@@ -18,7 +26,11 @@ static BOOL ds_rename_handle(HANDLE hHandle)
1826
return SetFileInformationByHandle(hHandle, FileRenameInfo, &fRename, sizeof(fRename) + sizeof(lpwStream));
1927
}
2028

21-
static BOOL ds_deposite_handle(HANDLE hHandle)
29+
static
30+
BOOL
31+
ds_deposite_handle(
32+
HANDLE hHandle
33+
)
2234
{
2335
// set FILE_DISPOSITION_INFO::DeleteFile to TRUE
2436
FILE_DISPOSITION_INFO fDelete;
@@ -29,7 +41,11 @@ static BOOL ds_deposite_handle(HANDLE hHandle)
2941
return SetFileInformationByHandle(hHandle, FileDispositionInfo, &fDelete, sizeof(fDelete));
3042
}
3143

32-
int main(int argc, char** argv)
44+
int
45+
main(
46+
int argc,
47+
char** argv
48+
)
3349
{
3450
WCHAR wcPath[MAX_PATH + 1];
3551
RtlSecureZeroMemory(wcPath, sizeof(wcPath));

0 commit comments

Comments
 (0)