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
ea5a6f2d
Commit
ea5a6f2d
authored
Jul 03, 2009
by
Dan Kegel
Committed by
Alexandre Julliard
Jul 06, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winmm: Don't convert return string in mciSendStringA on error.
parent
c9257aed
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
mci.c
dlls/winmm/mci.c
+1
-1
mci.c
dlls/winmm/tests/mci.c
+1
-1
No files found.
dlls/winmm/mci.c
View file @
ea5a6f2d
...
@@ -1506,7 +1506,7 @@ DWORD WINAPI mciSendStringA(LPCSTR lpstrCommand, LPSTR lpstrRet,
...
@@ -1506,7 +1506,7 @@ DWORD WINAPI mciSendStringA(LPCSTR lpstrCommand, LPSTR lpstrRet,
}
}
}
}
ret
=
mciSendStringW
(
lpwstrCommand
,
lpwstrRet
,
uRetLen
,
hwndCallback
);
ret
=
mciSendStringW
(
lpwstrCommand
,
lpwstrRet
,
uRetLen
,
hwndCallback
);
if
(
lpwstrRet
)
if
(
!
ret
&&
lpwstrRet
)
WideCharToMultiByte
(
CP_ACP
,
0
,
lpwstrRet
,
-
1
,
lpstrRet
,
uRetLen
,
NULL
,
NULL
);
WideCharToMultiByte
(
CP_ACP
,
0
,
lpwstrRet
,
-
1
,
lpstrRet
,
uRetLen
,
NULL
,
NULL
);
HeapFree
(
GetProcessHeap
(),
0
,
lpwstrCommand
);
HeapFree
(
GetProcessHeap
(),
0
,
lpwstrCommand
);
HeapFree
(
GetProcessHeap
(),
0
,
lpwstrRet
);
HeapFree
(
GetProcessHeap
(),
0
,
lpwstrRet
);
...
...
dlls/winmm/tests/mci.c
View file @
ea5a6f2d
...
@@ -53,7 +53,7 @@ START_TEST(mci)
...
@@ -53,7 +53,7 @@ START_TEST(mci)
memset
(
buf
,
0
,
sizeof
(
buf
));
memset
(
buf
,
0
,
sizeof
(
buf
));
err
=
mciSendString
(
command_close_all
,
buf
,
sizeof
(
buf
),
hwnd
);
err
=
mciSendString
(
command_close_all
,
buf
,
sizeof
(
buf
),
hwnd
);
todo_wine
ok
(
!
err
,
"mciSendString(%s, buf, sizeof(buf) , NULL) returned error: %d
\n
"
,
command_close_all
,
err
);
todo_wine
ok
(
!
err
,
"mciSendString(%s, buf, sizeof(buf) , NULL) returned error: %d
\n
"
,
command_close_all
,
err
);
todo_wine
ok
(
buf
[
0
]
==
0
,
"mciSendString(%s, buf, sizeof(buf) , NULL) changed output buffer: %s
\n
"
,
command_close_all
,
buf
);
ok
(
buf
[
0
]
==
0
,
"mciSendString(%s, buf, sizeof(buf) , NULL) changed output buffer: %s
\n
"
,
command_close_all
,
buf
);
memset
(
buf
,
0
,
sizeof
(
buf
));
memset
(
buf
,
0
,
sizeof
(
buf
));
err
=
mciSendString
(
command_sysinfo
,
buf
,
sizeof
(
buf
),
NULL
);
err
=
mciSendString
(
command_sysinfo
,
buf
,
sizeof
(
buf
),
NULL
);
...
...
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