Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
0f0678aa
Commit
0f0678aa
authored
Jan 29, 2008
by
Alexander Nicolaysen Sørnes
Committed by
Alexandre Julliard
Feb 07, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: Use LocalFree in CommandLineToArgvW.
parent
602e6753
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
shell32_main.c
dlls/shell32/shell32_main.c
+5
-5
No files found.
dlls/shell32/shell32_main.c
View file @
0f0678aa
...
...
@@ -97,20 +97,20 @@ LPWSTR* WINAPI CommandLineToArgvW(LPCWSTR lpCmdline, int* numargs)
/* Return the path to the executable */
DWORD
len
,
size
=
16
;
hargv
=
Glob
alAlloc
(
0
,
size
);
argv
=
Glob
alLock
(
hargv
);
hargv
=
Loc
alAlloc
(
0
,
size
);
argv
=
Loc
alLock
(
hargv
);
for
(;;)
{
len
=
GetModuleFileNameW
(
0
,
(
LPWSTR
)(
argv
+
1
),
(
size
-
sizeof
(
LPWSTR
))
/
sizeof
(
WCHAR
));
if
(
!
len
)
{
Glob
alFree
(
hargv
);
Loc
alFree
(
hargv
);
return
NULL
;
}
if
(
len
<
size
)
break
;
size
*=
2
;
hargv
=
Glob
alReAlloc
(
hargv
,
size
,
0
);
argv
=
Glob
alLock
(
hargv
);
hargv
=
Loc
alReAlloc
(
hargv
,
size
,
0
);
argv
=
Loc
alLock
(
hargv
);
}
argv
[
0
]
=
(
LPWSTR
)(
argv
+
1
);
if
(
numargs
)
...
...
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