Why does this fail?

case WM_INITDIALOG:
{
LOGFONT lf;
GetObject(GetStockObject(SYSTEM_FONT), sizeof(lf), &lf);
lf.lfWeight = FW_BOLD;
g_hFont = CreateFontIndirect(&lf); // HFONT returned is NULL
...
return TRUE;
}


Lisa