mirror of
https://github.com/reactos/reactos.git
synced 2025-06-27 01:40:35 +00:00
fixed some more warnings
svn path=/trunk/; revision=15200
This commit is contained in:
parent
e55b576d82
commit
fa832dae41
6 changed files with 10 additions and 9 deletions
|
@ -131,7 +131,7 @@ static BOOL _CmdWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
|
||||||
* WM_DESTROY - post a quit message and return
|
* WM_DESTROY - post a quit message and return
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
INT_PTR CALLBACK
|
LRESULT CALLBACK
|
||||||
ChildWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
|
ChildWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
|
||||||
{
|
{
|
||||||
static short last_split;
|
static short last_split;
|
||||||
|
|
|
@ -642,7 +642,7 @@ static BOOL _CmdWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
INT_PTR CALLBACK
|
LRESULT CALLBACK
|
||||||
FrameWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
|
FrameWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
|
||||||
{
|
{
|
||||||
switch (message) {
|
switch (message) {
|
||||||
|
|
|
@ -21,6 +21,7 @@
|
||||||
#define WIN32_LEAN_AND_MEAN /* Exclude rarely-used stuff from Windows headers */
|
#define WIN32_LEAN_AND_MEAN /* Exclude rarely-used stuff from Windows headers */
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#include <commctrl.h>
|
#include <commctrl.h>
|
||||||
|
#include <stdio.h>
|
||||||
#include <tchar.h>
|
#include <tchar.h>
|
||||||
|
|
||||||
#include "hexedit.h"
|
#include "hexedit.h"
|
||||||
|
|
|
@ -80,10 +80,10 @@ extern TCHAR szChildClass[];
|
||||||
extern void ShowAboutBox(HWND hWnd);
|
extern void ShowAboutBox(HWND hWnd);
|
||||||
|
|
||||||
/* childwnd.c */
|
/* childwnd.c */
|
||||||
extern INT_PTR CALLBACK ChildWndProc(HWND, UINT, WPARAM, LPARAM);
|
extern LRESULT CALLBACK ChildWndProc(HWND, UINT, WPARAM, LPARAM);
|
||||||
|
|
||||||
/* framewnd.c */
|
/* framewnd.c */
|
||||||
extern INT_PTR CALLBACK FrameWndProc(HWND, UINT, WPARAM, LPARAM);
|
extern LRESULT CALLBACK FrameWndProc(HWND, UINT, WPARAM, LPARAM);
|
||||||
extern void SetupStatusBar(HWND hWnd, BOOL bResize);
|
extern void SetupStatusBar(HWND hWnd, BOOL bResize);
|
||||||
extern void UpdateStatusBar(void);
|
extern void UpdateStatusBar(void);
|
||||||
|
|
||||||
|
|
|
@ -231,7 +231,7 @@ char* convertHexToDWORDStr(BYTE *buf, ULONG bufLen)
|
||||||
DWORD convertHexCSVToHex(char *str, BYTE *buf, ULONG bufLen)
|
DWORD convertHexCSVToHex(char *str, BYTE *buf, ULONG bufLen)
|
||||||
{
|
{
|
||||||
char *s = str; /* Pointer to current */
|
char *s = str; /* Pointer to current */
|
||||||
char *b = buf; /* Pointer to result */
|
char *b = (char*)buf; /* Pointer to result */
|
||||||
|
|
||||||
ULONG strLen = strlen(str);
|
ULONG strLen = strlen(str);
|
||||||
ULONG strPos = 0;
|
ULONG strPos = 0;
|
||||||
|
@ -405,7 +405,7 @@ HRESULT setValue(LPSTR val_name, LPSTR val_data)
|
||||||
}
|
}
|
||||||
dwLen++;
|
dwLen++;
|
||||||
REGPROC_unescape_string(val_data);
|
REGPROC_unescape_string(val_data);
|
||||||
lpbData = val_data;
|
lpbData = (LPBYTE)val_data;
|
||||||
} else if (dwParseType == REG_DWORD) /* Convert the dword types */
|
} else if (dwParseType == REG_DWORD) /* Convert the dword types */
|
||||||
{
|
{
|
||||||
dwLen = convertHexToDWord(val_data, convert);
|
dwLen = convertHexToDWord(val_data, convert);
|
||||||
|
@ -1195,7 +1195,7 @@ void export_hkey(FILE *file, HKEY key,
|
||||||
case REG_SZ:
|
case REG_SZ:
|
||||||
case REG_EXPAND_SZ:
|
case REG_EXPAND_SZ:
|
||||||
fputs("\"", file);
|
fputs("\"", file);
|
||||||
REGPROC_export_string(file, *val_buf);
|
REGPROC_export_string(file, (CHAR*)*val_buf);
|
||||||
fputs("\"\n", file);
|
fputs("\"\n", file);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
|
@ -104,7 +104,7 @@ CRegKeySecurity_fnQueryInterface(LPREGKEYSECURITY this,
|
||||||
ULONG STDMETHODCALLTYPE
|
ULONG STDMETHODCALLTYPE
|
||||||
CRegKeySecurity_fnAddRef(LPREGKEYSECURITY this)
|
CRegKeySecurity_fnAddRef(LPREGKEYSECURITY this)
|
||||||
{
|
{
|
||||||
return (ULONG)InterlockedIncrement(&this->ref);
|
return (ULONG)InterlockedIncrement((LONG*)&this->ref);
|
||||||
}
|
}
|
||||||
|
|
||||||
ULONG STDMETHODCALLTYPE
|
ULONG STDMETHODCALLTYPE
|
||||||
|
@ -112,7 +112,7 @@ CRegKeySecurity_fnRelease(LPREGKEYSECURITY this)
|
||||||
{
|
{
|
||||||
ULONG rfc;
|
ULONG rfc;
|
||||||
|
|
||||||
rfc = (ULONG)InterlockedDecrement(&this->ref);
|
rfc = (ULONG)InterlockedDecrement((LONG*)&this->ref);
|
||||||
if(rfc == 0)
|
if(rfc == 0)
|
||||||
{
|
{
|
||||||
HeapFree(GetProcessHeap(), 0, this);
|
HeapFree(GetProcessHeap(), 0, this);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue