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
f76dac45
Commit
f76dac45
authored
Nov 26, 1998
by
Ulrich Weigand
Committed by
Alexandre Julliard
Nov 26, 1998
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bugfix: Do *not* zero out output buffer in GetNumberFormat32[AW].
parent
e520e212
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
22 deletions
+4
-22
ole2nls.c
ole/ole2nls.c
+4
-22
No files found.
ole/ole2nls.c
View file @
f76dac45
...
...
@@ -2981,19 +2981,10 @@ INT32 WINAPI GetNumberFormat32A(LCID locale, DWORD dwflags,
LPCSTR
lpvalue
,
const
NUMBERFMT32A
*
lpFormat
,
LPSTR
lpNumberStr
,
int
cchNumber
)
{
int
n
;
FIXME
(
file
,
"%s: stub, no reformating done
\n
"
,
lpvalue
);
n
=
strlen
(
lpvalue
);
if
(
cchNumber
)
{
strncpy
(
lpNumberStr
,
lpvalue
,
cchNumber
);
if
(
cchNumber
<=
n
)
{
lpNumberStr
[
cchNumber
-
1
]
=
0
;
n
=
cchNumber
-
1
;
}
}
return
n
;
lstrcpyn32A
(
lpNumberStr
,
lpvalue
,
cchNumber
);
return
cchNumber
?
lstrlen32A
(
lpNumberStr
)
:
0
;
}
/**************************************************************************
* GetNumberFormat32W (KERNEL32.xxx)
...
...
@@ -3002,19 +2993,10 @@ INT32 WINAPI GetNumberFormat32W(LCID locale, DWORD dwflags,
LPCWSTR
lpvalue
,
const
NUMBERFMT32W
*
lpFormat
,
LPWSTR
lpNumberStr
,
int
cchNumber
)
{
int
n
;
FIXME
(
file
,
"%s: stub, no reformating done
\n
"
,
debugstr_w
(
lpvalue
));
n
=
lstrlen32W
(
lpvalue
);
if
(
cchNumber
)
{
lstrcpyn32W
(
lpNumberStr
,
lpvalue
,
cchNumber
);
if
(
cchNumber
<=
n
)
{
lpNumberStr
[
cchNumber
-
1
]
=
0
;
n
=
cchNumber
-
1
;
}
}
return
n
;
lstrcpyn32W
(
lpNumberStr
,
lpvalue
,
cchNumber
);
return
cchNumber
?
lstrlen32W
(
lpNumberStr
)
:
0
;
}
/******************************************************************************
* OLE2NLS_CheckLocale [intern]
...
...
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