Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
cf8571fe
Commit
cf8571fe
authored
Dec 04, 2008
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Dec 04, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmd: Remove some superfluous casts.
parent
7a2f3bf7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
batch.c
programs/cmd/batch.c
+2
-2
directory.c
programs/cmd/directory.c
+1
-1
wcmdmain.c
programs/cmd/wcmdmain.c
+1
-1
No files found.
programs/cmd/batch.c
View file @
cf8571fe
...
...
@@ -89,7 +89,7 @@ void WCMD_batch (WCHAR *file, WCHAR *command, int called, WCHAR *startLabel, HAN
*/
prev_context
=
context
;
context
=
(
BATCH_CONTEXT
*
)
LocalAlloc
(
LMEM_FIXED
,
sizeof
(
BATCH_CONTEXT
));
context
=
LocalAlloc
(
LMEM_FIXED
,
sizeof
(
BATCH_CONTEXT
));
context
->
h
=
h
;
context
->
command
=
command
;
memset
(
context
->
shift_count
,
0x00
,
sizeof
(
context
->
shift_count
));
...
...
@@ -122,7 +122,7 @@ void WCMD_batch (WCHAR *file, WCHAR *command, int called, WCHAR *startLabel, HAN
* to the caller's caller.
*/
LocalFree
(
(
HANDLE
)
context
);
LocalFree
(
context
);
if
((
prev_context
!=
NULL
)
&&
(
!
called
))
{
prev_context
->
skip_rest
=
TRUE
;
context
=
prev_context
;
...
...
programs/cmd/directory.c
View file @
cf8571fe
...
...
@@ -938,7 +938,7 @@ void WCMD_getfileowner(WCHAR *filename, WCHAR *owner, int ownerlen) {
ULONG
domainLen
=
MAXSTRING
;
SID_NAME_USE
nameuse
;
secBuffer
=
(
LPBYTE
)
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeNeeded
*
sizeof
(
BYTE
));
secBuffer
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeNeeded
*
sizeof
(
BYTE
));
if
(
!
secBuffer
)
return
;
/* Get the owners security descriptor */
...
...
programs/cmd/wcmdmain.c
View file @
cf8571fe
...
...
@@ -1348,7 +1348,7 @@ void WCMD_print_error (void) {
WCMD_output_asis_len
(
lpMsgBuf
,
lstrlen
(
lpMsgBuf
),
GetStdHandle
(
STD_ERROR_HANDLE
));
LocalFree
(
(
HLOCAL
)
lpMsgBuf
);
LocalFree
(
lpMsgBuf
);
WCMD_output_asis_len
(
newline
,
lstrlen
(
newline
),
GetStdHandle
(
STD_ERROR_HANDLE
));
return
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment