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
1a4163b6
Commit
1a4163b6
authored
Feb 15, 2024
by
Paul Gofman
Committed by
Alexandre Julliard
Feb 16, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
powershell: Read input command from stdin.
parent
75fa35ad
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
3 deletions
+18
-3
main.c
programs/powershell/main.c
+18
-3
No files found.
programs/powershell/main.c
View file @
1a4163b6
...
@@ -24,10 +24,25 @@ int __cdecl wmain(int argc, WCHAR *argv[])
...
@@ -24,10 +24,25 @@ int __cdecl wmain(int argc, WCHAR *argv[])
{
{
int
i
;
int
i
;
WINE_FIXME
(
"stub
:
"
);
WINE_FIXME
(
"stub
.
\n
"
);
for
(
i
=
0
;
i
<
argc
;
i
++
)
for
(
i
=
0
;
i
<
argc
;
i
++
)
WINE_FIXME
(
" %s"
,
wine_dbgstr_w
(
argv
[
i
]));
{
WINE_FIXME
(
"
\n
"
);
WINE_FIXME
(
"argv[%d] %s
\n
"
,
i
,
wine_dbgstr_w
(
argv
[
i
]));
if
(
!
wcsicmp
(
argv
[
i
],
L"-command"
)
&&
i
<
argc
-
1
&&
!
wcscmp
(
argv
[
i
+
1
],
L"-"
))
{
char
command
[
4096
],
*
p
;
++
i
;
while
(
fgets
(
command
,
sizeof
(
command
),
stdin
))
{
WINE_FIXME
(
"command %s.
\n
"
,
debugstr_a
(
command
));
p
=
command
;
while
(
*
p
&&
!
isspace
(
*
p
))
++
p
;
*
p
=
0
;
if
(
!
stricmp
(
command
,
"exit"
))
break
;
}
}
}
return
0
;
return
0
;
}
}
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