Fixed ANSI C violations.
This commit is contained in:
parent
24dd5d9e4f
commit
e92331ffd0
|
@ -72,7 +72,9 @@ static ICOM_VTABLE(ICommDlgBrowser) IShellBrowserImpl_ICommDlgBrowser_Vtbl =
|
||||||
*/
|
*/
|
||||||
|
|
||||||
HRESULT IShellBrowserImpl_ICommDlgBrowser_OnSelChange(ICommDlgBrowser *iface, IShellView *ppshv);
|
HRESULT IShellBrowserImpl_ICommDlgBrowser_OnSelChange(ICommDlgBrowser *iface, IShellView *ppshv);
|
||||||
//LPITEMIDLIST GetSelectedPidl(IShellView *ppshv);
|
#if 0
|
||||||
|
LPITEMIDLIST GetSelectedPidl(IShellView *ppshv);
|
||||||
|
#endif
|
||||||
|
|
||||||
/**************************************************************************
|
/**************************************************************************
|
||||||
* External Prototypes
|
* External Prototypes
|
||||||
|
|
|
@ -499,8 +499,8 @@ HGLOBAL PRINTDLG_CreateDevNames(
|
||||||
{
|
{
|
||||||
long size;
|
long size;
|
||||||
HGLOBAL hDevNames;
|
HGLOBAL hDevNames;
|
||||||
void* pDevNamesSpace;
|
char* pDevNamesSpace;
|
||||||
void* pTempPtr;
|
char* pTempPtr;
|
||||||
LPDEVNAMES lpDevNames;
|
LPDEVNAMES lpDevNames;
|
||||||
|
|
||||||
size = strlen(DeviceDriverName) +1
|
size = strlen(DeviceDriverName) +1
|
||||||
|
|
|
@ -40,7 +40,7 @@ typedef struct
|
||||||
WORD callfrom16;
|
WORD callfrom16;
|
||||||
} ENTRYPOINT16;
|
} ENTRYPOINT16;
|
||||||
|
|
||||||
#define EP(target, offset) { 0x5566, 0x68, (target), 0xe866, (offset) }
|
#define EP(target, offset) { 0x5566, 0x68, (target), 0xe866, (WORD) (offset) }
|
||||||
|
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
|
|
|
@ -457,12 +457,18 @@ static HKEY find_root_key(LPKEYSTRUCT lpkey)
|
||||||
KEYSTRUCT *lpkey;
|
KEYSTRUCT *lpkey;
|
||||||
HKEY hkey;
|
HKEY hkey;
|
||||||
} ROOT_KEYS;
|
} ROOT_KEYS;
|
||||||
ROOT_KEYS root_keys[] = { { key_classes_root, HKEY_CLASSES_ROOT },
|
ROOT_KEYS root_keys[4];
|
||||||
{ key_current_user, HKEY_CURRENT_USER },
|
|
||||||
{ key_local_machine, HKEY_LOCAL_MACHINE },
|
|
||||||
{ key_users, HKEY_USERS } };
|
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
|
root_keys[0].lpkey = key_classes_root;
|
||||||
|
root_keys[0].hkey = HKEY_CLASSES_ROOT;
|
||||||
|
root_keys[1].lpkey = key_current_user;
|
||||||
|
root_keys[1].hkey = HKEY_CURRENT_USER;
|
||||||
|
root_keys[2].lpkey = key_local_machine;
|
||||||
|
root_keys[2].hkey = HKEY_LOCAL_MACHINE;
|
||||||
|
root_keys[3].lpkey = key_users;
|
||||||
|
root_keys[3].hkey = HKEY_USERS;
|
||||||
|
|
||||||
for (i=0; i<4;i++)
|
for (i=0; i<4;i++)
|
||||||
{
|
{
|
||||||
if (subkey_found(root_keys[i].lpkey, lpkey))
|
if (subkey_found(root_keys[i].lpkey, lpkey))
|
||||||
|
|
|
@ -437,12 +437,15 @@ static HGLOBAL16 CURSORICON_CreateFromResource( HINSTANCE16 hInstance, HGLOBAL16
|
||||||
int sizeAnd, sizeXor;
|
int sizeAnd, sizeXor;
|
||||||
HBITMAP hAndBits = 0, hXorBits = 0; /* error condition for later */
|
HBITMAP hAndBits = 0, hXorBits = 0; /* error condition for later */
|
||||||
BITMAPOBJ *bmpXor, *bmpAnd;
|
BITMAPOBJ *bmpXor, *bmpAnd;
|
||||||
POINT16 hotspot = { ICON_HOTSPOT, ICON_HOTSPOT };
|
POINT16 hotspot;
|
||||||
BITMAPINFO *bmi;
|
BITMAPINFO *bmi;
|
||||||
HDC hdc;
|
HDC hdc;
|
||||||
BOOL DoStretch;
|
BOOL DoStretch;
|
||||||
INT size;
|
INT size;
|
||||||
|
|
||||||
|
hotspot.x = ICON_HOTSPOT;
|
||||||
|
hotspot.y = ICON_HOTSPOT;
|
||||||
|
|
||||||
TRACE_(cursor)("%08x (%u bytes), ver %08x, %ix%i %s %s\n",
|
TRACE_(cursor)("%08x (%u bytes), ver %08x, %ix%i %s %s\n",
|
||||||
(unsigned)bits, cbSize, (unsigned)dwVersion, width, height,
|
(unsigned)bits, cbSize, (unsigned)dwVersion, width, height,
|
||||||
bIcon ? "icon" : "cursor", (loadflags & LR_MONOCHROME) ? "mono" : "" );
|
bIcon ? "icon" : "cursor", (loadflags & LR_MONOCHROME) ? "mono" : "" );
|
||||||
|
|
|
@ -1756,11 +1756,10 @@ static void BuildCallTo16Func( FILE *outfile, char *profile, char *prefix )
|
||||||
args = profile + 5;
|
args = profile + 5;
|
||||||
for ( i = 0; args[i]; i++ )
|
for ( i = 0; args[i]; i++ )
|
||||||
{
|
{
|
||||||
fprintf( outfile, " *--(" );
|
|
||||||
switch (args[i])
|
switch (args[i])
|
||||||
{
|
{
|
||||||
case 'w': fprintf( outfile, "WORD" ); break;
|
case 'w': fprintf( outfile, " args -= sizeof(WORD); *(WORD" ); break;
|
||||||
case 'l': fprintf( outfile, "LONG" ); break;
|
case 'l': fprintf( outfile, " args -= sizeof(LONG); *(LONG" ); break;
|
||||||
default: fprintf( stderr, "Unexpected case '%c' in BuildCallTo16Func\n",
|
default: fprintf( stderr, "Unexpected case '%c' in BuildCallTo16Func\n",
|
||||||
args[i] );
|
args[i] );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue