Commit 03490879 authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Alexandre Julliard

Fix an obvious typo leading to a crash.

parent fd4675c5
......@@ -1514,7 +1514,8 @@ static DWORD MCI_SysInfo(UINT uDevID, DWORD dwFlags, LPMCI_SYSINFO_PARMSA lpParm
}
if (!s) {
if (GetPrivateProfileStringA("mci", 0, "", buf, sizeof(buf), "system.ini")) {
for(p = buf; *p; p += strlen(s) + 1, cnt++) {
for(p = buf; *p; p += strlen(p) + 1, cnt++) {
TRACE("%ld: %s\n", cnt, p);
if (cnt == lpParms->dwNumber - 1) {
s = p;
break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment