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
307edcca
Commit
307edcca
authored
May 25, 2004
by
Stefan Leichter
Committed by
Alexandre Julliard
May 25, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Moved stub of StopWatch from ascii to unicode.
parent
d5a31871
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
12 deletions
+15
-12
stopwatch.c
dlls/shlwapi/stopwatch.c
+15
-12
No files found.
dlls/shlwapi/stopwatch.c
View file @
307edcca
...
...
@@ -38,6 +38,7 @@
#include "wingdi.h"
#include "winuser.h"
#include "winreg.h"
#include "winternl.h"
#define NO_SHLWAPI_STREAM
#include "shlwapi.h"
#include "wine/debug.h"
...
...
@@ -81,9 +82,8 @@ void WINAPI StopWatchFlush()
FIXME
(
"() stub!
\n
"
);
}
/*************************************************************************
* @ [SHLWAPI.24
3
]
* @ [SHLWAPI.24
4
]
*
* Write a performance event to a log file
*
...
...
@@ -98,28 +98,31 @@ void WINAPI StopWatchFlush()
* Success: ERROR_SUCCESS.
* Failure: A standard Win32 error code indicating the failure.
*/
DWORD
WINAPI
StopWatch
A
(
DWORD
dwClass
,
LPC
STR
lpszStr
,
DWORD
dwUnknown
,
DWORD
WINAPI
StopWatch
W
(
DWORD
dwClass
,
LPCW
STR
lpszStr
,
DWORD
dwUnknown
,
DWORD
dwMode
,
DWORD
dwTimeStamp
)
{
FIXME
(
"(%ld,%s,%ld,%ld,%ld) stub!
\n
"
,
dwClass
,
debugstr_a
(
lpszStr
),
FIXME
(
"(%ld,%s,%ld,%ld,%ld) stub!
\n
"
,
dwClass
,
debugstr_w
(
lpszStr
),
dwUnknown
,
dwMode
,
dwTimeStamp
);
return
ERROR_SUCCESS
;
}
/*************************************************************************
* @ [SHLWAPI.24
4
]
* @ [SHLWAPI.24
3
]
*
* See StopWatch
A
.
* See StopWatch
W
.
*/
DWORD
WINAPI
StopWatch
W
(
DWORD
dwClass
,
LPCW
STR
lpszStr
,
DWORD
dwUnknown
,
DWORD
WINAPI
StopWatch
A
(
DWORD
dwClass
,
LPC
STR
lpszStr
,
DWORD
dwUnknown
,
DWORD
dwMode
,
DWORD
dwTimeStamp
)
{
char
szBuff
[
MAX_PATH
];
{
DWORD
retval
;
UNICODE_STRING
szStrW
;
if
(
lpszStr
)
RtlCreateUnicodeStringFromAsciiz
(
&
szStrW
,
lpszStr
);
else
szStrW
.
Buffer
=
NULL
;
if
(
!
WideCharToMultiByte
(
0
,
0
,
lpszStr
,
-
1
,
szBuff
,
MAX_PATH
,
0
,
0
))
return
ERROR_NOT_ENOUGH_MEMORY
;
retval
=
StopWatchW
(
dwClass
,
szStrW
.
Buffer
,
dwUnknown
,
dwMode
,
dwTimeStamp
);
return
StopWatchA
(
dwClass
,
szBuff
,
dwUnknown
,
dwMode
,
dwTimeStamp
);
RtlFreeUnicodeString
(
&
szStrW
);
return
retval
;
}
/*************************************************************************
...
...
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