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
c4b0c89b
Commit
c4b0c89b
authored
Feb 07, 2022
by
Eric Pouech
Committed by
Alexandre Julliard
Feb 07, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wineconsole: Enable compilation with long types.
Signed-off-by:
Eric Pouech
<
eric.pouech@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
27aacaa7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
Makefile.in
programs/wineconsole/Makefile.in
+0
-1
wineconsole.c
programs/wineconsole/wineconsole.c
+2
-2
No files found.
programs/wineconsole/Makefile.in
View file @
c4b0c89b
EXTRADEFS
=
-DWINE_NO_LONG_TYPES
MODULE
=
wineconsole.exe
IMPORTS
=
advapi32
DELAYIMPORTS
=
comctl32 user32 gdi32
...
...
programs/wineconsole/wineconsole.c
View file @
c4b0c89b
...
...
@@ -44,7 +44,7 @@ int WINAPI wWinMain( HINSTANCE inst, HINSTANCE prev, WCHAR *cmdline, INT show )
FreeConsole
();
/* make sure we're not connected to inherited console */
if
(
!
AllocConsole
())
{
ERR
(
"failed to allocate console: %u
\n
"
,
GetLastError
()
);
ERR
(
"failed to allocate console: %
l
u
\n
"
,
GetLastError
()
);
return
1
;
}
...
...
@@ -63,7 +63,7 @@ int WINAPI wWinMain( HINSTANCE inst, HINSTANCE prev, WCHAR *cmdline, INT show )
INPUT_RECORD
ir
;
DWORD
len
;
exit_code
=
GetLastError
();
WARN
(
"CreateProcess failed: %u
\n
"
,
exit_code
);
WARN
(
"CreateProcess failed: %
l
u
\n
"
,
exit_code
);
LoadStringW
(
GetModuleHandleW
(
NULL
),
IDS_CMD_LAUNCH_FAILED
,
format
,
ARRAY_SIZE
(
format
)
);
len
=
wcslen
(
format
)
+
wcslen
(
cmd
);
if
((
buf
=
malloc
(
len
*
sizeof
(
WCHAR
)
)))
...
...
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