Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_jdk
提交
d1363d73
D
dragonwell8_jdk
项目概览
openanolis
/
dragonwell8_jdk
通知
3
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
dragonwell8_jdk
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
d1363d73
编写于
8月 14, 2009
作者:
T
tbell
浏览文件
操作
浏览文件
下载
差异文件
Merge
上级
6c916778
e6b1800d
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
4 addition
and
3 deletion
+4
-3
.hgtags
.hgtags
+1
-0
src/windows/native/sun/jkernel/kernel.cpp
src/windows/native/sun/jkernel/kernel.cpp
+3
-3
未找到文件。
.hgtags
浏览文件 @
d1363d73
...
...
@@ -43,3 +43,4 @@ a50217eb3ee10b9f9547e0708e5c9625405083ef jdk7-b64
bd31b30a5b21f20e42965b1633f18a5c7946d398 jdk7-b66
a952aafd5181af953b0ef3010dbd2fcc28460e8a jdk7-b67
b23d905cb5d3b382295240d28ab0bfb266b4503c jdk7-b68
226b20019b1f020c09ea97d137d98e011ce65d76 jdk7-b69
src/windows/native/sun/jkernel/kernel.cpp
浏览文件 @
d1363d73
...
...
@@ -116,11 +116,11 @@ char* getStringPlatformChars(JNIEnv* env, jstring jstr) {
char
*
result
=
NULL
;
size_t
len
;
const
jchar
*
utf16
=
env
->
GetStringChars
(
jstr
,
NULL
);
len
=
wcstombs
(
NULL
,
utf16
,
env
->
GetStringLength
(
jstr
)
*
4
)
+
1
;
len
=
wcstombs
(
NULL
,
(
const
wchar_t
*
)
utf16
,
env
->
GetStringLength
(
jstr
)
*
4
)
+
1
;
if
(
len
==
-
1
)
return
NULL
;
result
=
(
char
*
)
malloc
(
len
);
if
(
wcstombs
(
result
,
utf16
,
len
)
==
-
1
)
if
(
wcstombs
(
result
,
(
const
wchar_t
*
)
utf16
,
len
)
==
-
1
)
return
NULL
;
env
->
ReleaseStringChars
(
jstr
,
utf16
);
return
result
;
...
...
@@ -640,7 +640,7 @@ JNIEXPORT void JNICALL Java_sun_jkernel_DownloadManager_startBackgroundDownloadW
}
void
getParent
(
const
TCHAR
*
path
,
TCHAR
*
dest
)
{
void
getParent
(
TCHAR
*
path
,
TCHAR
*
dest
)
{
char
*
lastSlash
=
max
(
strrchr
(
path
,
'\\'
),
strrchr
(
path
,
'/'
));
if
(
lastSlash
==
NULL
)
{
*
dest
=
NULL
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录