int FontFamilyCount;
int FontFamilySize;
PFONTFAMILYINFO Info;
- int Ret = 0;
+ int Ret = 1;
int i;
ENUMLOGFONTEXA EnumLogFontExA;
NEWTEXTMETRICEXA NewTextMetricExA;
INITIAL_FAMILY_COUNT * sizeof(FONTFAMILYINFO));
if (NULL == Info)
{
- return 0;
+ return 1;
}
if (!LogFont)
if (FontFamilyCount < 0)
{
RtlFreeHeap(GetProcessHeap(), 0, Info);
- return 0;
+ return 1;
}
if (INITIAL_FAMILY_COUNT < FontFamilyCount)
{
FontFamilyCount * sizeof(FONTFAMILYINFO));
if (NULL == Info)
{
- return 0;
+ return 1;
}
FontFamilyCount = NtGdiGetFontFamilyInfo(Dc, LogFont, Info, FontFamilySize);
if (FontFamilyCount < 0 || FontFamilySize < FontFamilyCount)
{
RtlFreeHeap(GetProcessHeap(), 0, Info);
- return 0;
+ return 1;
}
}
EnumProcA,
(LPARAM)&ContextContinue);
error = GetLastError();
- ok(ret == 1, "ret is %d, expected 0\n", ret);
+ ok(ret == 1, "ret is %d, expected 1\n", ret);
ok(error == 0xdeadbeef, "error is %lu\n", error);
ok(EnumProcCalls == 0, "EnumProcCalls is %d\n", EnumProcCalls);
}
EnumProcW,
(LPARAM)&ContextContinue);
error = GetLastError();
- ok(ret == 1, "ret is %d, expected 0\n", ret);
+ ok(ret == 1, "ret is %d, expected 1\n", ret);
ok(error == 0xdeadbeef, "error is %lu\n", error);
ok(EnumProcCalls == 0, "EnumProcCalls is %d\n", EnumProcCalls);
}
(LPARAM)&ContextContinue,
0);
error = GetLastError();
- ok(ret == 1, "ret is %d, expected 0\n", ret);
+ ok(ret == 1, "ret is %d, expected 1\n", ret);
ok(error == 0xdeadbeef, "error is %lu\n", error);
ok(EnumProcCalls == 0, "EnumProcCalls is %d\n", EnumProcCalls);
}
(LPARAM)&ContextContinue,
0);
error = GetLastError();
- ok(ret == 1, "ret is %d, expected 0\n", ret);
+ ok(ret == 1, "ret is %d, expected 1\n", ret);
ok(error == 0xdeadbeef, "error is %lu\n", error);
ok(EnumProcCalls == 0, "EnumProcCalls is %d\n", EnumProcCalls);
}