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
b66685cd
Commit
b66685cd
authored
Sep 03, 2008
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
programs: Build the programs that support it with -DWINE_NO_UNICODE_MACROS.
parent
e1c9c259
Hide whitespace changes
Inline
Side-by-side
Showing
39 changed files
with
55 additions
and
34 deletions
+55
-34
Makefile.in
programs/control/Makefile.in
+1
-0
control.c
programs/control/control.c
+2
-2
Makefile.in
programs/eject/Makefile.in
+1
-0
Makefile.in
programs/expand/Makefile.in
+1
-0
expand.c
programs/expand/expand.c
+2
-2
Makefile.in
programs/explorer/Makefile.in
+1
-0
systray.c
programs/explorer/systray.c
+6
-6
Makefile.in
programs/hh/Makefile.in
+1
-0
main.c
programs/hh/main.c
+1
-1
Makefile.in
programs/icinfo/Makefile.in
+1
-0
Makefile.in
programs/iexplore/Makefile.in
+1
-0
Makefile.in
programs/msiexec/Makefile.in
+1
-0
msiexec.c
programs/msiexec/msiexec.c
+2
-2
service.c
programs/msiexec/service.c
+3
-3
Makefile.in
programs/reg/Makefile.in
+1
-0
Makefile.in
programs/regsvr32/Makefile.in
+1
-0
regsvr32.c
programs/regsvr32/regsvr32.c
+1
-1
Makefile.in
programs/rpcss/Makefile.in
+1
-0
Makefile.in
programs/secedit/Makefile.in
+1
-0
Makefile.in
programs/services/Makefile.in
+1
-0
Makefile.in
programs/spoolsv/Makefile.in
+1
-0
Makefile.in
programs/start/Makefile.in
+1
-0
start.c
programs/start/start.c
+3
-3
Makefile.in
programs/svchost/Makefile.in
+1
-0
Makefile.in
programs/uninstaller/Makefile.in
+1
-0
Makefile.in
programs/wineboot/Makefile.in
+1
-0
shutdown.c
programs/wineboot/shutdown.c
+1
-1
Makefile.in
programs/winebrowser/Makefile.in
+1
-0
main.c
programs/winebrowser/main.c
+3
-3
Makefile.in
programs/winedevice/Makefile.in
+1
-0
Makefile.in
programs/winemenubuilder/Makefile.in
+1
-0
Makefile.in
programs/winepath/Makefile.in
+1
-0
winepath.c
programs/winepath/winepath.c
+2
-2
Makefile.in
programs/winevdm/Makefile.in
+1
-0
winevdm.c
programs/winevdm/winevdm.c
+1
-1
Makefile.in
programs/winver/Makefile.in
+1
-0
winver.c
programs/winver/winver.c
+1
-5
Makefile.in
programs/write/Makefile.in
+1
-0
write.c
programs/write/write.c
+2
-2
No files found.
programs/control/Makefile.in
View file @
b66685cd
EXTRADEFS
=
-DWINE_NO_UNICODE_MACROS
TOPSRCDIR
=
@top_srcdir@
TOPOBJDIR
=
../..
SRCDIR
=
@srcdir@
...
...
programs/control/control.c
View file @
b66685cd
...
...
@@ -35,8 +35,8 @@ static void launch(const char *what)
int
WINAPI
WinMain
(
HINSTANCE
hInst
,
HINSTANCE
hPrev
,
LPSTR
lpszCmdLine
,
INT
nCmdShow
)
{
char
szParams
[
255
];
l
strcpy
(
szParams
,
lpszCmdLine
);
CharUpper
(
szParams
);
strcpy
(
szParams
,
lpszCmdLine
);
CharUpper
A
(
szParams
);
/* no parameters - pop up whole "Control Panel" by default */
if
(
!*
szParams
)
{
...
...
programs/eject/Makefile.in
View file @
b66685cd
EXTRADEFS
=
-DWINE_NO_UNICODE_MACROS
TOPSRCDIR
=
@top_srcdir@
TOPOBJDIR
=
../..
SRCDIR
=
@srcdir@
...
...
programs/expand/Makefile.in
View file @
b66685cd
EXTRADEFS
=
-DWINE_NO_UNICODE_MACROS
TOPSRCDIR
=
@top_srcdir@
TOPOBJDIR
=
../..
SRCDIR
=
@srcdir@
...
...
programs/expand/expand.c
View file @
b66685cd
...
...
@@ -155,12 +155,12 @@ int main(int argc, char *argv[])
OFSTRUCT
ofin
,
ofout
;
LONG
error
;
if
((
hin
=
LZOpenFile
(
infile
,
&
ofin
,
OF_READ
))
<
0
)
if
((
hin
=
LZOpenFile
A
(
infile
,
&
ofin
,
OF_READ
))
<
0
)
{
fprintf
(
stderr
,
"%s: can't open input file %s
\n
"
,
argv
[
0
],
infile
);
return
1
;
}
if
((
hout
=
LZOpenFile
(
outfile
,
&
ofout
,
OF_CREATE
|
OF_WRITE
))
<
0
)
if
((
hout
=
LZOpenFile
A
(
outfile
,
&
ofout
,
OF_CREATE
|
OF_WRITE
))
<
0
)
{
LZClose
(
hin
);
fprintf
(
stderr
,
"%s: can't open output file %s
\n
"
,
argv
[
0
],
outfile
);
...
...
programs/explorer/Makefile.in
View file @
b66685cd
EXTRADEFS
=
-DWINE_NO_UNICODE_MACROS
TOPSRCDIR
=
@top_srcdir@
TOPOBJDIR
=
../..
SRCDIR
=
@srcdir@
...
...
programs/explorer/systray.c
View file @
b66685cd
...
...
@@ -109,7 +109,7 @@ static void create_tooltip(struct icon *icon)
tooltips_initialized
=
TRUE
;
}
icon
->
tooltip
=
CreateWindowEx
(
WS_EX_TOPMOST
,
TOOLTIPS_CLASS
,
NULL
,
icon
->
tooltip
=
CreateWindowEx
W
(
WS_EX_TOPMOST
,
TOOLTIPS_CLASSW
,
NULL
,
WS_POPUP
|
TTS_ALWAYSTIP
,
CW_USEDEFAULT
,
CW_USEDEFAULT
,
CW_USEDEFAULT
,
CW_USEDEFAULT
,
...
...
@@ -351,7 +351,7 @@ static BOOL handle_incoming(HWND hwndSource, COPYDATASTRUCT *cds)
int
ret
=
FALSE
;
if
(
cds
->
cbData
<
NOTIFYICONDATAW_V1_SIZE
)
return
FALSE
;
cbSize
=
((
PNOTIFYICONDATA
)
cds
->
lpData
)
->
cbSize
;
cbSize
=
((
PNOTIFYICONDATA
W
)
cds
->
lpData
)
->
cbSize
;
if
(
cbSize
<
NOTIFYICONDATAW_V1_SIZE
)
return
FALSE
;
ZeroMemory
(
&
nid
,
sizeof
(
nid
));
...
...
@@ -544,7 +544,7 @@ void initialize_systray(void)
{
HMODULE
x11drv
;
SIZE
size
;
WNDCLASSEX
class
;
WNDCLASSEX
W
class
;
static
const
WCHAR
classname
[]
=
{
'S'
,
'h'
,
'e'
,
'l'
,
'l'
,
'_'
,
'T'
,
'r'
,
'a'
,
'y'
,
'W'
,
'n'
,
'd'
,
0
};
static
const
WCHAR
winname
[]
=
{
'W'
,
'i'
,
'n'
,
'e'
,
' '
,
'S'
,
'y'
,
's'
,
't'
,
'e'
,
'm'
,
' '
,
'T'
,
'r'
,
'a'
,
'y'
,
0
};
...
...
@@ -561,12 +561,12 @@ void initialize_systray(void)
class
.
style
=
CS_DBLCLKS
;
class
.
lpfnWndProc
=
tray_wndproc
;
class
.
hInstance
=
NULL
;
class
.
hIcon
=
LoadIcon
(
0
,
IDI_WINLOGO
);
class
.
hCursor
=
LoadCursor
(
0
,
IDC_ARROW
);
class
.
hIcon
=
LoadIcon
W
(
0
,
(
LPCWSTR
)
IDI_WINLOGO
);
class
.
hCursor
=
LoadCursor
W
(
0
,
(
LPCWSTR
)
IDC_ARROW
);
class
.
hbrBackground
=
(
HBRUSH
)
COLOR_WINDOW
;
class
.
lpszClassName
=
(
WCHAR
*
)
&
classname
;
if
(
!
RegisterClassEx
(
&
class
))
if
(
!
RegisterClassEx
W
(
&
class
))
{
WINE_ERR
(
"Could not register SysTray window class
\n
"
);
return
;
...
...
programs/hh/Makefile.in
View file @
b66685cd
EXTRADEFS
=
-DWINE_NO_UNICODE_MACROS
TOPSRCDIR
=
@top_srcdir@
TOPOBJDIR
=
../..
SRCDIR
=
@srcdir@
...
...
programs/hh/main.c
View file @
b66685cd
...
...
@@ -28,7 +28,7 @@ int WINAPI WinMain(HINSTANCE hInst, HINSTANCE hPrevInst, LPSTR cmdline, int cmds
HMODULE
hModule
;
DOWINMAIN
*
doWinMain
;
hModule
=
LoadLibrary
(
"hhctrl.ocx"
);
hModule
=
LoadLibrary
A
(
"hhctrl.ocx"
);
doWinMain
=
(
DOWINMAIN
*
)
GetProcAddress
(
hModule
,
"doWinMain"
);
return
doWinMain
(
hInst
,
cmdline
);
...
...
programs/icinfo/Makefile.in
View file @
b66685cd
EXTRADEFS
=
-DWINE_NO_UNICODE_MACROS
TOPSRCDIR
=
@top_srcdir@
TOPOBJDIR
=
../..
SRCDIR
=
@srcdir@
...
...
programs/iexplore/Makefile.in
View file @
b66685cd
EXTRADEFS
=
-DWINE_NO_UNICODE_MACROS
TOPSRCDIR
=
@top_srcdir@
TOPOBJDIR
=
../..
SRCDIR
=
@srcdir@
...
...
programs/msiexec/Makefile.in
View file @
b66685cd
EXTRADEFS
=
-DWINE_NO_UNICODE_MACROS
TOPSRCDIR
=
@top_srcdir@
TOPOBJDIR
=
../..
SRCDIR
=
@srcdir@
...
...
programs/msiexec/msiexec.c
View file @
b66685cd
...
...
@@ -344,14 +344,14 @@ static DWORD DoRegServer(void)
CHAR
path
[
MAX_PATH
+
12
];
DWORD
ret
=
0
;
scm
=
OpenSCManager
(
NULL
,
SERVICES_ACTIVE_DATABASE
,
SC_MANAGER_CREATE_SERVICE
);
scm
=
OpenSCManager
A
(
NULL
,
SERVICES_ACTIVE_DATABASEA
,
SC_MANAGER_CREATE_SERVICE
);
if
(
!
scm
)
{
fprintf
(
stderr
,
"Failed to open the service control manager.
\n
"
);
return
1
;
}
GetSystemDirectory
(
path
,
MAX_PATH
);
GetSystemDirectory
A
(
path
,
MAX_PATH
);
lstrcatA
(
path
,
"
\\
msiexec.exe /V"
);
service
=
CreateServiceA
(
scm
,
"MSIServer"
,
"MSIServer"
,
GENERIC_ALL
,
...
...
programs/msiexec/service.c
View file @
b66685cd
...
...
@@ -132,7 +132,7 @@ static void WINAPI ServiceMain(DWORD argc, LPSTR *argv)
UpdateSCMStatus
(
SERVICE_START_PENDING
,
NO_ERROR
,
0
);
kill_event
=
CreateEvent
(
0
,
TRUE
,
FALSE
,
0
);
kill_event
=
CreateEvent
W
(
0
,
TRUE
,
FALSE
,
0
);
if
(
!
kill_event
)
{
fprintf
(
stderr
,
"Failed to create event
\n
"
);
...
...
@@ -156,7 +156,7 @@ DWORD DoService(void)
{
char
service_name
[]
=
"MSIServer"
;
const
SERVICE_TABLE_ENTRY
service
[]
=
const
SERVICE_TABLE_ENTRY
A
service
[]
=
{
{
service_name
,
ServiceMain
},
{
NULL
,
NULL
},
...
...
@@ -164,7 +164,7 @@ DWORD DoService(void)
WINE_TRACE
(
"Starting MSIServer service
\n
"
);
if
(
!
StartServiceCtrlDispatcher
(
service
))
if
(
!
StartServiceCtrlDispatcher
A
(
service
))
{
fprintf
(
stderr
,
"Failed to start MSIServer service
\n
"
);
return
1
;
...
...
programs/reg/Makefile.in
View file @
b66685cd
EXTRADEFS
=
-DWINE_NO_UNICODE_MACROS
TOPSRCDIR
=
@top_srcdir@
TOPOBJDIR
=
../..
SRCDIR
=
@srcdir@
...
...
programs/regsvr32/Makefile.in
View file @
b66685cd
EXTRADEFS
=
-DWINE_NO_UNICODE_MACROS
TOPSRCDIR
=
@top_srcdir@
TOPOBJDIR
=
../..
SRCDIR
=
@srcdir@
...
...
programs/regsvr32/regsvr32.c
View file @
b66685cd
...
...
@@ -86,7 +86,7 @@ static VOID *LoadProc(const char* strDll, const char* procName, HMODULE* DllHand
{
VOID
*
(
*
proc
)(
void
);
*
DllHandle
=
LoadLibraryEx
(
strDll
,
0
,
LOAD_WITH_ALTERED_SEARCH_PATH
);
*
DllHandle
=
LoadLibraryEx
A
(
strDll
,
0
,
LOAD_WITH_ALTERED_SEARCH_PATH
);
if
(
!*
DllHandle
)
{
if
(
!
Silent
)
...
...
programs/rpcss/Makefile.in
View file @
b66685cd
EXTRADEFS
=
-DWINE_NO_UNICODE_MACROS
TOPSRCDIR
=
@top_srcdir@
TOPOBJDIR
=
../..
SRCDIR
=
@srcdir@
...
...
programs/secedit/Makefile.in
View file @
b66685cd
EXTRADEFS
=
-DWINE_NO_UNICODE_MACROS
TOPSRCDIR
=
@top_srcdir@
TOPOBJDIR
=
../..
SRCDIR
=
@srcdir@
...
...
programs/services/Makefile.in
View file @
b66685cd
EXTRADEFS
=
-DWINE_NO_UNICODE_MACROS
TOPSRCDIR
=
@top_srcdir@
TOPOBJDIR
=
../..
SRCDIR
=
@srcdir@
...
...
programs/spoolsv/Makefile.in
View file @
b66685cd
EXTRADEFS
=
-DWINE_NO_UNICODE_MACROS
TOPSRCDIR
=
@top_srcdir@
TOPOBJDIR
=
../..
SRCDIR
=
@srcdir@
...
...
programs/start/Makefile.in
View file @
b66685cd
EXTRADEFS
=
-DWINE_NO_UNICODE_MACROS
TOPSRCDIR
=
@top_srcdir@
TOPOBJDIR
=
../..
SRCDIR
=
@srcdir@
...
...
programs/start/start.c
View file @
b66685cd
...
...
@@ -96,7 +96,7 @@ static void fatal_string_error(int which, DWORD error_code)
{
WCHAR
msg
[
2048
];
if
(
!
LoadStringW
(
GetModuleHandle
(
NULL
),
which
,
if
(
!
LoadStringW
(
GetModuleHandle
W
(
NULL
),
which
,
msg
,
sizeof
(
msg
)
/
sizeof
(
WCHAR
)))
WINE_ERR
(
"LoadString failed, error %d
\n
"
,
GetLastError
());
...
...
@@ -107,7 +107,7 @@ static void fatal_string(int which)
{
WCHAR
msg
[
2048
];
if
(
!
LoadStringW
(
GetModuleHandle
(
NULL
),
which
,
if
(
!
LoadStringW
(
GetModuleHandle
W
(
NULL
),
which
,
msg
,
sizeof
(
msg
)
/
sizeof
(
WCHAR
)))
WINE_ERR
(
"LoadString failed, error %d
\n
"
,
GetLastError
());
...
...
@@ -262,7 +262,7 @@ int wmain (int argc, WCHAR *argv[])
char
*
multibyte_unixpath
;
int
multibyte_unixpath_len
;
wine_get_dos_file_name_ptr
=
(
void
*
)
GetProcAddress
(
GetModuleHandle
(
"KERNEL32"
),
"wine_get_dos_file_name"
);
wine_get_dos_file_name_ptr
=
(
void
*
)
GetProcAddress
(
GetModuleHandle
A
(
"KERNEL32"
),
"wine_get_dos_file_name"
);
if
(
!
wine_get_dos_file_name_ptr
)
fatal_string
(
STRING_UNIXFAIL
);
...
...
programs/svchost/Makefile.in
View file @
b66685cd
EXTRADEFS
=
-DWINE_NO_UNICODE_MACROS
TOPSRCDIR
=
@top_srcdir@
TOPOBJDIR
=
../..
SRCDIR
=
@srcdir@
...
...
programs/uninstaller/Makefile.in
View file @
b66685cd
EXTRADEFS
=
-DWINE_NO_UNICODE_MACROS
TOPSRCDIR
=
@top_srcdir@
TOPOBJDIR
=
../..
SRCDIR
=
@srcdir@
...
...
programs/wineboot/Makefile.in
View file @
b66685cd
EXTRADEFS
=
-DWINE_NO_UNICODE_MACROS
TOPSRCDIR
=
@top_srcdir@
TOPOBJDIR
=
../..
SRCDIR
=
@srcdir@
...
...
programs/wineboot/shutdown.c
View file @
b66685cd
...
...
@@ -227,7 +227,7 @@ static LRESULT send_messages_with_timeout_dialog(
}
else
if
((
ret
==
WAIT_TIMEOUT
)
&&
!
hwnd_endtask
)
{
hwnd_endtask
=
CreateDialogParamW
(
GetModuleHandle
(
NULL
),
hwnd_endtask
=
CreateDialogParamW
(
GetModuleHandle
W
(
NULL
),
MAKEINTRESOURCEW
(
IDD_ENDTASK
),
NULL
,
endtask_dlg_proc
,
(
LPARAM
)
&
dlg_data
);
...
...
programs/winebrowser/Makefile.in
View file @
b66685cd
EXTRADEFS
=
-DWINE_NO_UNICODE_MACROS
TOPSRCDIR
=
@top_srcdir@
TOPOBJDIR
=
../..
SRCDIR
=
@srcdir@
...
...
programs/winebrowser/main.c
View file @
b66685cd
...
...
@@ -284,9 +284,9 @@ static WCHAR *get_url_from_dde(void)
while
(
!
ddeString
)
{
MSG
msg
;
if
(
!
GetMessage
(
&
msg
,
NULL
,
0
,
0
))
break
;
if
(
!
GetMessage
W
(
&
msg
,
NULL
,
0
,
0
))
break
;
if
(
msg
.
message
==
WM_TIMER
)
break
;
DispatchMessage
(
&
msg
);
DispatchMessage
W
(
&
msg
);
}
if
(
ddeString
)
...
...
@@ -381,7 +381,7 @@ int wmain(int argc, WCHAR *argv[])
/* check if the argument is a local file */
wine_get_unix_file_name_ptr
=
(
wine_get_unix_file_name_t
)
GetProcAddress
(
GetModuleHandle
(
"KERNEL32"
),
"wine_get_unix_file_name"
);
GetProcAddress
(
GetModuleHandle
A
(
"KERNEL32"
),
"wine_get_unix_file_name"
);
if
(
wine_get_unix_file_name_ptr
==
NULL
)
{
...
...
programs/winedevice/Makefile.in
View file @
b66685cd
EXTRADEFS
=
-DWINE_NO_UNICODE_MACROS
TOPSRCDIR
=
@top_srcdir@
TOPOBJDIR
=
../..
SRCDIR
=
@srcdir@
...
...
programs/winemenubuilder/Makefile.in
View file @
b66685cd
EXTRADEFS
=
-DWINE_NO_UNICODE_MACROS
TOPSRCDIR
=
@top_srcdir@
TOPOBJDIR
=
../..
SRCDIR
=
@srcdir@
...
...
programs/winepath/Makefile.in
View file @
b66685cd
EXTRADEFS
=
-DWINE_NO_UNICODE_MACROS
TOPSRCDIR
=
@top_srcdir@
TOPOBJDIR
=
../..
SRCDIR
=
@srcdir@
...
...
programs/winepath/winepath.c
View file @
b66685cd
...
...
@@ -155,7 +155,7 @@ int wmain(int argc, const WCHAR *argv[])
if
(
outputformats
&
UNIXFORMAT
)
{
wine_get_unix_file_name_ptr
=
(
void
*
)
GetProcAddress
(
GetModuleHandle
(
"KERNEL32"
),
GetProcAddress
(
GetModuleHandle
A
(
"KERNEL32"
),
"wine_get_unix_file_name"
);
if
(
wine_get_unix_file_name_ptr
==
NULL
)
{
fprintf
(
stderr
,
"%s: cannot get the address of "
...
...
@@ -166,7 +166,7 @@ int wmain(int argc, const WCHAR *argv[])
if
(
outputformats
&
WINDOWSFORMAT
)
{
wine_get_dos_file_name_ptr
=
(
void
*
)
GetProcAddress
(
GetModuleHandle
(
"KERNEL32"
),
GetProcAddress
(
GetModuleHandle
A
(
"KERNEL32"
),
"wine_get_dos_file_name"
);
if
(
wine_get_dos_file_name_ptr
==
NULL
)
{
fprintf
(
stderr
,
"%s: cannot get the address of "
...
...
programs/winevdm/Makefile.in
View file @
b66685cd
EXTRADEFS
=
-DWINE_NO_UNICODE_MACROS
TOPSRCDIR
=
@top_srcdir@
TOPOBJDIR
=
../..
SRCDIR
=
@srcdir@
...
...
programs/winevdm/winevdm.c
View file @
b66685cd
...
...
@@ -218,7 +218,7 @@ static VOID pif_cmd( char *filename, char *cmdline)
if
(
(
p
=
strrchr
(
progname
,
'.'
))
&&
!
strcasecmp
(
p
,
".bat"
))
WINE_FIXME
(
".bat programs in pif files are not supported.
\n
"
);
/* first change dir, so the search below can start from there */
if
(
startdir
[
0
]
&&
!
SetCurrentDirectory
(
startdir
))
{
if
(
startdir
[
0
]
&&
!
SetCurrentDirectory
A
(
startdir
))
{
WINE_ERR
(
"Cannot change directory %s
\n
"
,
wine_dbgstr_a
(
startdir
));
sprintf
(
buf
,
"%s
\n
Invalid startup directory. Check your pif file."
,
filename
);
...
...
programs/winver/Makefile.in
View file @
b66685cd
EXTRADEFS
=
-DWINE_NO_UNICODE_MACROS
TOPSRCDIR
=
@top_srcdir@
TOPOBJDIR
=
../..
SRCDIR
=
@srcdir@
...
...
programs/winver/winver.c
View file @
b66685cd
...
...
@@ -23,9 +23,5 @@
int
PASCAL
WinMain
(
HINSTANCE
inst
,
HINSTANCE
prev
,
LPSTR
cmdline
,
int
show
)
{
return
ShellAbout
(
NULL
,
PACKAGE_NAME
,
PACKAGE_STRING
,
0
);
return
ShellAbout
A
(
NULL
,
PACKAGE_NAME
,
PACKAGE_STRING
,
0
);
}
/* Local Variables: */
/* c-files style: "GNU" */
/* End: */
programs/write/Makefile.in
View file @
b66685cd
EXTRADEFS
=
-DWINE_NO_UNICODE_MACROS
TOPSRCDIR
=
@top_srcdir@
TOPOBJDIR
=
../..
SRCDIR
=
@srcdir@
...
...
programs/write/write.c
View file @
b66685cd
...
...
@@ -40,7 +40,7 @@ int CALLBACK WinMain(HINSTANCE hInstance, HINSTANCE hOldInstance, LPSTR szCmdPar
lstrcatW
(
path
,
SZ_BACKSLASH
);
lstrcatW
(
path
,
SZ_WORDPAD
);
stinf
.
cb
=
sizeof
(
STARTUPINFO
);
stinf
.
cb
=
sizeof
(
STARTUPINFO
W
);
GetStartupInfoW
(
&
stinf
);
if
(
!
CreateProcessW
(
path
,
GetCommandLineW
(),
NULL
,
NULL
,
FALSE
,
0
,
NULL
,
NULL
,
&
stinf
,
&
info
))
...
...
@@ -48,7 +48,7 @@ int CALLBACK WinMain(HINSTANCE hInstance, HINSTANCE hOldInstance, LPSTR szCmdPar
return
0
;
failed:
LoadStringW
(
GetModuleHandle
(
NULL
),
IDS_FAILED
,
path
,
MAX_PATH
);
LoadStringW
(
GetModuleHandle
W
(
NULL
),
IDS_FAILED
,
path
,
MAX_PATH
);
MessageBoxW
(
NULL
,
path
,
NULL
,
MB_OK
|
MB_ICONERROR
);
return
1
;
}
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