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
73a6b2fc
Commit
73a6b2fc
authored
Dec 14, 1998
by
Huw D M Davies
Committed by
Alexandre Julliard
Dec 14, 1998
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Hack OLE_GetFormat* to return something if datelen = 0.
Remove unnecessary WINAPI's.
parent
c04870d2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
+12
-3
ole2nls.c
ole/ole2nls.c
+12
-3
No files found.
ole/ole2nls.c
View file @
73a6b2fc
...
...
@@ -2362,7 +2362,7 @@ UINT32 WINAPI CompareString32W(DWORD lcid, DWORD fdwStyle,
* OLE_GetFormatA [Internal]
*
* FIXME
*
Why is it WINAPI if internal?
*
If datelen == 0, it should return the reguired string length.
*
This function implements stuff for GetDateFormat() and
GetTimeFormat().
...
...
@@ -2394,7 +2394,7 @@ UINT32 WINAPI CompareString32W(DWORD lcid, DWORD fdwStyle,
These functions REQUIRE valid locale, date, and format.
*/
INT32
WINAPI
OLE_GetFormatA
(
LCID
locale
,
static
INT32
OLE_GetFormatA
(
LCID
locale
,
DWORD
flags
,
DWORD
tflags
,
LPSYSTEMTIME
xtime
,
...
...
@@ -2418,6 +2418,11 @@ INT32 WINAPI OLE_GetFormatA(LCID locale,
xtime
->
wDay
,
xtime
->
wHour
,
xtime
->
wMinute
,
xtime
->
wSecond
,
_format
,
_format
,
date
,
datelen
);
if
(
datelen
==
0
)
{
FIXME
(
ole
,
"datelen = 0, returning 255
\n
"
);
return
255
;
}
/* initalize state variables and output buffer */
inpos
=
outpos
=
0
;
count
=
0
;
inquote
=
0
;
Overflow
=
0
;
...
...
@@ -2601,7 +2606,7 @@ INT32 WINAPI OLE_GetFormatA(LCID locale,
/******************************************************************************
* OLE_GetFormatW [INTERNAL]
*/
INT32
WINAPI
OLE_GetFormatW
(
LCID
locale
,
DWORD
flags
,
DWORD
tflags
,
static
INT32
OLE_GetFormatW
(
LCID
locale
,
DWORD
flags
,
DWORD
tflags
,
LPSYSTEMTIME
xtime
,
LPCWSTR
format
,
LPWSTR
output
,
INT32
outlen
)
...
...
@@ -2623,6 +2628,10 @@ INT32 WINAPI OLE_GetFormatW(LCID locale, DWORD flags, DWORD tflags,
xtime
->
wDay
,
xtime
->
wHour
,
xtime
->
wMinute
,
xtime
->
wSecond
,
debugstr_w
(
format
),
format
,
output
,
outlen
);
if
(
outlen
==
0
)
{
FIXME
(
ole
,
"outlen = 0, returning 255
\n
"
);
return
255
;
}
/* initialize state variables */
inpos
=
outpos
=
0
;
...
...
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