mirror of
https://github.com/reactos/reactos.git
synced 2024-09-10 04:42:00 +00:00
some small warning fixes
svn path=/trunk/; revision=25189
This commit is contained in:
parent
564debb90d
commit
3b3aadac55
|
@ -292,7 +292,7 @@ InitBackgroundDialog(HWND hwndDlg, PGLOBAL_DATA pGlobalData)
|
||||||
|
|
||||||
RegCloseKey(regKey);
|
RegCloseKey(regKey);
|
||||||
|
|
||||||
pGlobalData->hBitmap = LoadImage(hApplet, MAKEINTRESOURCE(IDC_MONITOR), IMAGE_BITMAP, 0, 0, LR_LOADTRANSPARENT);
|
pGlobalData->hBitmap = (HBITMAP) LoadImage(hApplet, MAKEINTRESOURCE(IDC_MONITOR), IMAGE_BITMAP, 0, 0, LR_LOADTRANSPARENT);
|
||||||
if (pGlobalData->hBitmap != NULL)
|
if (pGlobalData->hBitmap != NULL)
|
||||||
{
|
{
|
||||||
GetObject(pGlobalData->hBitmap, sizeof(BITMAP), &bitmap);
|
GetObject(pGlobalData->hBitmap, sizeof(BITMAP), &bitmap);
|
||||||
|
@ -623,7 +623,7 @@ SetWallpaper(PGLOBAL_DATA pGlobalData)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
SystemParametersInfo(SPI_SETDESKWALLPAPER, 0, TEXT(""), SPIF_UPDATEINIFILE);
|
SystemParametersInfo(SPI_SETDESKWALLPAPER, 0, (void*) TEXT(""), SPIF_UPDATEINIFILE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -676,7 +676,7 @@ BackgroundPageProc(HWND hwndDlg,
|
||||||
switch (uMsg)
|
switch (uMsg)
|
||||||
{
|
{
|
||||||
case WM_INITDIALOG:
|
case WM_INITDIALOG:
|
||||||
pGlobalData = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(GLOBAL_DATA));
|
pGlobalData = (GLOBAL_DATA*) HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(GLOBAL_DATA));
|
||||||
SetWindowLongPtr(hwndDlg, DWLP_USER, (LONG_PTR)pGlobalData);
|
SetWindowLongPtr(hwndDlg, DWLP_USER, (LONG_PTR)pGlobalData);
|
||||||
InitBackgroundDialog(hwndDlg, pGlobalData);
|
InitBackgroundDialog(hwndDlg, pGlobalData);
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -529,5 +529,5 @@ void Adv_SaveData(HWND hwndDlg)
|
||||||
MessageBox(hwndDlg, L"WriteGlobalPwrPolicy failed", NULL, MB_OK);
|
MessageBox(hwndDlg, L"WriteGlobalPwrPolicy failed", NULL, MB_OK);
|
||||||
}
|
}
|
||||||
|
|
||||||
Adv_InitDialog(hwndDlg);
|
Adv_InitDialog();
|
||||||
}
|
}
|
||||||
|
|
|
@ -176,7 +176,7 @@ GetNTPServerAddress(LPSTR* lpAddress)
|
||||||
&dwSize);
|
&dwSize);
|
||||||
if (Ret == ERROR_MORE_DATA)
|
if (Ret == ERROR_MORE_DATA)
|
||||||
{
|
{
|
||||||
buf = HeapAlloc(GetProcessHeap(),
|
buf = (LPWSTR) HeapAlloc(GetProcessHeap(),
|
||||||
0,
|
0,
|
||||||
dwSize);
|
dwSize);
|
||||||
if (buf == NULL)
|
if (buf == NULL)
|
||||||
|
@ -200,7 +200,7 @@ GetNTPServerAddress(LPSTR* lpAddress)
|
||||||
|
|
||||||
/* We still allocate same amount of space for ASCII storage,
|
/* We still allocate same amount of space for ASCII storage,
|
||||||
* as some chars may use several bytes */
|
* as some chars may use several bytes */
|
||||||
*lpAddress = HeapAlloc(GetProcessHeap(),
|
*lpAddress = (LPSTR) HeapAlloc(GetProcessHeap(),
|
||||||
0,
|
0,
|
||||||
sizeof(dwSize));
|
sizeof(dwSize));
|
||||||
if (*lpAddress == NULL)
|
if (*lpAddress == NULL)
|
||||||
|
|
|
@ -1006,7 +1006,7 @@ MonthCalWndProc(IN HWND hwnd,
|
||||||
|
|
||||||
case WM_CREATE:
|
case WM_CREATE:
|
||||||
{
|
{
|
||||||
infoPtr = HeapAlloc(GetProcessHeap(),
|
infoPtr = (MONTHCALWND*) HeapAlloc(GetProcessHeap(),
|
||||||
0,
|
0,
|
||||||
sizeof(MONTHCALWND));
|
sizeof(MONTHCALWND));
|
||||||
if (infoPtr == NULL)
|
if (infoPtr == NULL)
|
||||||
|
|
Loading…
Reference in a new issue