WC_DESKTOP, /* name */
CS_DBLCLKS, /* style */
NULL, /* procA (winproc is Unicode only) */
- (WNDPROC) DesktopWndProc, /* procW */
+ DesktopWndProc, /* procW */
0, /* extra */
IDC_ARROW, /* cursor */
(HBRUSH)(COLOR_BACKGROUND+1) /* brush */
int WINAPI
RealGetSystemMetrics(int nIndex)
{
- GetConnected();
-// FIXME("Global Server Data -> %x\n",gpsi);
+ //GetConnected();
+ //FIXME("Global Server Data -> %x\n",gpsi);
if (nIndex < 0 || nIndex >= SM_CMETRICS) return 0;
return gpsi->aiSysMet[nIndex];
}
}
Ret = NtUserSystemParametersInfo(SPI_SETDESKWALLPAPER, uiParam, pvParam, fWinIni);
- RtlFreeUnicodeString(&ustrWallpaper);
+
+ if (pvParam)
+ RtlFreeUnicodeString(&ustrWallpaper);
+
return Ret;
}
}