Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
git2
Overview
Overview
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
git2
Commits
92d5a637
Commit
92d5a637
authored
Jan 14, 2017
by
Sven Strickroth
Committed by
Edward Thomson
Apr 02, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
win32: deduplicate code: use p_open in p_creat
Signed-off-by: Sven Strickroth <email@cs-ware.de>
parent
ef5cfcdb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
8 deletions
+1
-8
src/win32/posix_w32.c
+1
-8
No files found.
src/win32/posix_w32.c
View file @
92d5a637
...
...
@@ -520,14 +520,7 @@ int p_open(const char *path, int flags, ...)
int
p_creat
(
const
char
*
path
,
mode_t
mode
)
{
git_win32_path
buf
;
if
(
git_win32_path_from_utf8
(
buf
,
path
)
<
0
)
return
-
1
;
return
_wopen
(
buf
,
_O_WRONLY
|
_O_CREAT
|
_O_TRUNC
|
STANDARD_OPEN_FLAGS
,
mode
&
WIN32_MODE_MASK
);
return
p_open
(
path
,
O_WRONLY
|
O_CREAT
|
O_TRUNC
,
mode
);
}
int
p_getcwd
(
char
*
buffer_out
,
size_t
size
)
...
...
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