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
7cbae6b6
Commit
7cbae6b6
authored
Apr 29, 2019
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
extrac32: Build with msvcrt.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
b5e2f767
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
8 deletions
+9
-8
Makefile.in
programs/extrac32/Makefile.in
+2
-1
extrac32.c
programs/extrac32/extrac32.c
+7
-7
No files found.
programs/extrac32/Makefile.in
View file @
7cbae6b6
MODULE
=
extrac32.exe
APPMODE
=
-mwindows
-municode
IMPORTS
=
shell32 setupapi shlwapi user32
EXTRADLLFLAGS
=
-mwindows
-municode
-mno-cygwin
C_SRCS
=
\
extrac32.c
programs/extrac32/extrac32.c
View file @
7cbae6b6
...
...
@@ -19,13 +19,13 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include <stdio.h>
#include <windows.h>
#include <shellapi.h>
#include <setupapi.h>
#include <shlwapi.h>
#include <shlobj.h>
#include "wine/unicode.h"
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
extrac32
);
...
...
@@ -38,7 +38,7 @@ static void create_target_directory(LPWSTR Target)
WCHAR
dir
[
MAX_PATH
];
int
res
;
strcpyW
(
dir
,
Target
);
l
strcpyW
(
dir
,
Target
);
*
PathFindFileNameW
(
dir
)
=
0
;
/* Truncate file name */
if
(
!
PathIsDirectoryW
(
dir
))
{
...
...
@@ -118,7 +118,7 @@ static void copy_file(LPCWSTR source, LPCWSTR destination)
static
const
WCHAR
overwriteMsg
[]
=
{
'O'
,
'v'
,
'e'
,
'r'
,
'w'
,
'r'
,
'i'
,
't'
,
'e'
,
' '
,
'"'
,
'%'
,
's'
,
'"'
,
'?'
,
0
};
static
const
WCHAR
titleMsg
[]
=
{
'E'
,
'x'
,
't'
,
'r'
,
'a'
,
'c'
,
't'
,
0
};
WCHAR
msg
[
MAX_PATH
+
100
];
s
nprintfW
(
msg
,
ARRAY_SIZE
(
msg
),
overwriteMsg
,
destination
);
s
wprintf
(
msg
,
ARRAY_SIZE
(
msg
),
overwriteMsg
,
destination
);
if
(
MessageBoxW
(
NULL
,
msg
,
titleMsg
,
MB_YESNO
|
MB_ICONWARNING
)
!=
IDYES
)
return
;
}
...
...
@@ -137,9 +137,9 @@ static LPWSTR *get_extrac_args(LPWSTR cmdline, int *pargc)
BOOL
new_arg
;
WINE_TRACE
(
"cmdline: %s
\n
"
,
wine_dbgstr_w
(
cmdline
));
str
=
HeapAlloc
(
GetProcessHeap
(),
0
,
(
strlenW
(
cmdline
)
+
1
)
*
sizeof
(
WCHAR
));
str
=
HeapAlloc
(
GetProcessHeap
(),
0
,
(
l
strlenW
(
cmdline
)
+
1
)
*
sizeof
(
WCHAR
));
if
(
!
str
)
return
NULL
;
strcpyW
(
str
,
cmdline
);
l
strcpyW
(
str
,
cmdline
);
argv
=
HeapAlloc
(
GetProcessHeap
(),
0
,
(
max_argc
+
1
)
*
sizeof
(
LPWSTR
));
if
(
!
argv
)
{
...
...
@@ -154,7 +154,7 @@ static LPWSTR *get_extrac_args(LPWSTR cmdline, int *pargc)
{
new_arg
=
FALSE
;
/* Check character */
if
(
is
spaceW
(
*
str
))
/* white space */
if
(
is
wspace
(
*
str
))
/* white space */
{
if
(
state
==
INSIDE_ARG
)
{
...
...
@@ -257,7 +257,7 @@ int PASCAL wWinMain(HINSTANCE hInstance, HINSTANCE prev, LPWSTR cmdline, int sho
break
;
}
/* Get parameters for commands */
check
=
to
upperW
(
argv
[
i
][
1
]
);
check
=
to
wupper
(
argv
[
i
][
1
]
);
switch
(
check
)
{
case
'A'
:
...
...
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