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
1555f29f
Commit
1555f29f
authored
Oct 28, 2014
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
write: Always append a backslash to the system directory.
parent
d9ed0fb8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
4 deletions
+1
-4
write.c
programs/write/write.c
+1
-4
No files found.
programs/write/write.c
View file @
1555f29f
...
...
@@ -25,8 +25,7 @@
#include <windows.h>
#include "resources.h"
static
const
WCHAR
SZ_BACKSLASH
[]
=
{
'\\'
,
0
};
static
const
WCHAR
SZ_WORDPAD
[]
=
{
'w'
,
'o'
,
'r'
,
'd'
,
'p'
,
'a'
,
'd'
,
'.'
,
'e'
,
'x'
,
'e'
,
0
};
static
const
WCHAR
SZ_WORDPAD
[]
=
{
'\\'
,
'w'
,
'o'
,
'r'
,
'd'
,
'p'
,
'a'
,
'd'
,
'.'
,
'e'
,
'x'
,
'e'
,
0
};
int
CALLBACK
WinMain
(
HINSTANCE
hInstance
,
HINSTANCE
hOldInstance
,
LPSTR
szCmdParagraph
,
int
res
)
{
...
...
@@ -36,8 +35,6 @@ int CALLBACK WinMain(HINSTANCE hInstance, HINSTANCE hOldInstance, LPSTR szCmdPar
if
(
!
GetSystemDirectoryW
(
path
,
MAX_PATH
-
1
-
lstrlenW
(
SZ_WORDPAD
)))
goto
failed
;
if
(
path
[
lstrlenW
(
path
)
-
1
]
!=
'\\'
)
lstrcatW
(
path
,
SZ_BACKSLASH
);
lstrcatW
(
path
,
SZ_WORDPAD
);
stinf
.
cb
=
sizeof
(
STARTUPINFOW
);
...
...
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