Fixed double applet = applet = assignment.

Removed sic_hdpa only used in 1 C file as static var.
Make VT_Shell_IMalloc32 and related variables static.
This commit is contained in:
Marcus Meissner 2004-07-12 19:50:56 +00:00 committed by Alexandre Julliard
parent ada760f0a6
commit ab7af13705
3 changed files with 5 additions and 6 deletions

View File

@ -171,7 +171,7 @@ static BOOL Control_Localize(const CPanel* panel, unsigned cx, unsigned cy,
RECT rc; RECT rc;
GetClientRect(panel->hWnd, &rc); GetClientRect(panel->hWnd, &rc);
for (applet = panel->first; applet; applet = applet = applet->next) { for (applet = panel->first; applet; applet = applet->next) {
for (i = 0; i < applet->count; i++) { for (i = 0; i < applet->count; i++) {
if (!applet->info[i].dwSize) continue; if (!applet->info[i].dwSize) continue;
if (x + XSTEP >= rc.right - rc.left) { if (x + XSTEP >= rc.right - rc.left) {
@ -201,7 +201,7 @@ static LRESULT Control_WndProc_Paint(const CPanel* panel, WPARAM wParam)
hdc = (wParam) ? (HDC)wParam : BeginPaint(panel->hWnd, &ps); hdc = (wParam) ? (HDC)wParam : BeginPaint(panel->hWnd, &ps);
hOldFont = SelectObject(hdc, GetStockObject(ANSI_VAR_FONT)); hOldFont = SelectObject(hdc, GetStockObject(ANSI_VAR_FONT));
GetClientRect(panel->hWnd, &rc); GetClientRect(panel->hWnd, &rc);
for (applet = panel->first; applet; applet = applet = applet->next) { for (applet = panel->first; applet; applet = applet->next) {
for (i = 0; i < applet->count; i++) { for (i = 0; i < applet->count; i++) {
if (x + XSTEP >= rc.right - rc.left) { if (x + XSTEP >= rc.right - rc.left) {
x = 0; x = 0;

View File

@ -44,7 +44,6 @@ extern HMODULE huser32;
extern HINSTANCE shell32_hInstance; extern HINSTANCE shell32_hInstance;
extern HIMAGELIST ShellSmallIconList; extern HIMAGELIST ShellSmallIconList;
extern HIMAGELIST ShellBigIconList; extern HIMAGELIST ShellBigIconList;
extern HDPA sic_hdpa;
BOOL WINAPI Shell_GetImageList(HIMAGELIST * lpBigList, HIMAGELIST * lpSmallList); BOOL WINAPI Shell_GetImageList(HIMAGELIST * lpBigList, HIMAGELIST * lpSmallList);

View File

@ -274,7 +274,7 @@ DWORD WINAPI SHCLSIDFromStringAW (LPVOID clsid, CLSID *id)
*/ */
/* set the vtable later */ /* set the vtable later */
extern ICOM_VTABLE(IMalloc) VT_Shell_IMalloc32; static ICOM_VTABLE(IMalloc) VT_Shell_IMalloc32;
/* this is the static object instance */ /* this is the static object instance */
typedef struct { typedef struct {
@ -282,10 +282,10 @@ typedef struct {
DWORD dummy; DWORD dummy;
} _ShellMalloc; } _ShellMalloc;
_ShellMalloc Shell_Malloc = { &VT_Shell_IMalloc32,1}; static _ShellMalloc Shell_Malloc = { &VT_Shell_IMalloc32,1};
/* this is the global allocator of shell32 */ /* this is the global allocator of shell32 */
IMalloc * ShellTaskAllocator = NULL; static IMalloc * ShellTaskAllocator = NULL;
/****************************************************************************** /******************************************************************************
* IShellMalloc_QueryInterface [VTABLE] * IShellMalloc_QueryInterface [VTABLE]