mirror of
https://github.com/reactos/reactos.git
synced 2024-10-05 17:06:29 +00:00
fix a couple of warnings msvc highlighted
svn path=/trunk/; revision=24558
This commit is contained in:
parent
400f62c0f2
commit
37741f841f
|
@ -20,12 +20,12 @@ AboutDialogProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
|
|||
{
|
||||
case WM_INITDIALOG:
|
||||
|
||||
hIcon = LoadImage(hInstance,
|
||||
MAKEINTRESOURCE(IDI_MAIN_ICON),
|
||||
IMAGE_ICON,
|
||||
16,
|
||||
16,
|
||||
0);
|
||||
hIcon = (HICON)LoadImage(hInstance,
|
||||
MAKEINTRESOURCE(IDI_MAIN_ICON),
|
||||
IMAGE_ICON,
|
||||
16,
|
||||
16,
|
||||
0);
|
||||
|
||||
SendMessage(hDlg,
|
||||
WM_SETICON,
|
||||
|
|
|
@ -235,7 +235,7 @@ EnumDevices(INT index,
|
|||
{
|
||||
SP_DEVINFO_DATA DeviceInfoData;
|
||||
CONFIGRET cr;
|
||||
LONG Status, ProblemNumber;
|
||||
ULONG Status, ProblemNumber;
|
||||
DWORD DevIdSize;
|
||||
|
||||
*DeviceName = _T('\0');
|
||||
|
|
|
@ -638,9 +638,9 @@ CreateMainWindow(LPCTSTR lpCaption,
|
|||
PMAIN_WND_INFO Info;
|
||||
HWND hMainWnd = NULL;
|
||||
|
||||
Info = HeapAlloc(ProcessHeap,
|
||||
HEAP_ZERO_MEMORY,
|
||||
sizeof(MAIN_WND_INFO));
|
||||
Info = (PMAIN_WND_INFO)HeapAlloc(ProcessHeap,
|
||||
HEAP_ZERO_MEMORY,
|
||||
sizeof(MAIN_WND_INFO));
|
||||
|
||||
if (Info != NULL)
|
||||
{
|
||||
|
|
|
@ -28,7 +28,7 @@ LengthOfStrResource(IN HINSTANCE hInst,
|
|||
/* Find the string table block */
|
||||
if ((hrSrc = FindResourceW(hInst, lpName, (LPWSTR)RT_STRING)) &&
|
||||
(hRes = LoadResource(hInst, hrSrc)) &&
|
||||
(lpStr = LockResource(hRes)))
|
||||
(lpStr = (LPWSTR)LockResource(hRes)))
|
||||
{
|
||||
UINT x;
|
||||
|
||||
|
@ -212,12 +212,12 @@ InitImageList(UINT StartResource,
|
|||
/* Add all icons to the image list */
|
||||
for (i = StartResource; i <= EndResource; i++)
|
||||
{
|
||||
hBitmap = LoadImage(hInstance,
|
||||
MAKEINTRESOURCE(i),
|
||||
IMAGE_BITMAP,
|
||||
Width,
|
||||
Height,
|
||||
LR_LOADTRANSPARENT);
|
||||
hBitmap = (HBITMAP)LoadImage(hInstance,
|
||||
MAKEINTRESOURCE(i),
|
||||
IMAGE_BITMAP,
|
||||
Width,
|
||||
Height,
|
||||
LR_LOADTRANSPARENT);
|
||||
if (hBitmap == NULL)
|
||||
return NULL;
|
||||
|
||||
|
@ -248,13 +248,13 @@ VOID GetError(VOID)
|
|||
0,
|
||||
NULL );
|
||||
|
||||
MessageBox(NULL, lpMsgBuf, _T("Error!"), MB_OK | MB_ICONERROR);
|
||||
MessageBox(NULL, (LPTSTR)lpMsgBuf, _T("Error!"), MB_OK | MB_ICONERROR);
|
||||
|
||||
LocalFree(lpMsgBuf);
|
||||
}
|
||||
|
||||
|
||||
VOID DisplayString(PTCHAR Msg)
|
||||
VOID DisplayString(LPTSTR Msg)
|
||||
{
|
||||
MessageBox(NULL, Msg, _T("Note!"), MB_ICONEXCLAMATION|MB_OK);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue