Fix an obvious typo leading to a crash.

This commit is contained in:
Dmitry Timoshkov 2004-08-25 17:31:03 +00:00 committed by Alexandre Julliard
parent fd4675c501
commit 03490879bd
1 changed files with 2 additions and 1 deletions

View File

@ -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;