Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
5c1ffddb
Commit
5c1ffddb
authored
Jun 22, 2005
by
Mike McCormack
Committed by
Alexandre Julliard
Jun 22, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix declarations, remove unused code.
parent
95082868
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
3 additions
and
109 deletions
+3
-109
clipboard.c
dlls/user/clipboard.c
+1
-1
listbox.c
dlls/user/listbox.c
+0
-19
msgbox.c
dlls/user/msgbox.c
+1
-1
sysparams.c
dlls/user/sysparams.c
+1
-88
No files found.
dlls/user/clipboard.c
View file @
5c1ffddb
...
...
@@ -80,7 +80,7 @@ static BOOL bCBHasChanged = FALSE;
* Set the global wineserver clipboard owner. The current process will
* be the owner and <hWnd> will get the render notifications.
*/
BOOL
CLIPBOARD_SetClipboardOwner
(
HWND
hWnd
)
static
BOOL
CLIPBOARD_SetClipboardOwner
(
HWND
hWnd
)
{
BOOL
bRet
=
FALSE
;
...
...
dlls/user/listbox.c
View file @
5c1ffddb
...
...
@@ -173,25 +173,6 @@ inline static BOOL is_old_app( LB_DESCR *descr )
/***********************************************************************
* LISTBOX_Dump
*/
void
LISTBOX_Dump
(
LB_DESCR
*
descr
)
{
INT
i
;
LB_ITEMDATA
*
item
;
TRACE
(
"Listbox:
\n
"
);
TRACE
(
"hwnd=%p descr=%08x items=%d top=%d
\n
"
,
descr
->
self
,
(
UINT
)
descr
,
descr
->
nb_items
,
descr
->
top_item
);
for
(
i
=
0
,
item
=
descr
->
items
;
i
<
descr
->
nb_items
;
i
++
,
item
++
)
{
TRACE
(
"%4d: %-40s %d %08lx %3d
\n
"
,
i
,
debugstr_w
(
item
->
str
),
item
->
selected
,
item
->
data
,
item
->
height
);
}
}
/***********************************************************************
* LISTBOX_GetCurrentPageSize
*
* Return the current page size
...
...
dlls/user/msgbox.c
View file @
5c1ffddb
...
...
@@ -47,7 +47,7 @@ struct ThreadWindows
HWND
*
handles
;
};
BOOL
CALLBACK
MSGBOX_EnumProc
(
HWND
hwnd
,
LPARAM
lParam
)
static
BOOL
CALLBACK
MSGBOX_EnumProc
(
HWND
hwnd
,
LPARAM
lParam
)
{
struct
ThreadWindows
*
threadWindows
=
(
struct
ThreadWindows
*
)
lParam
;
...
...
dlls/user/sysparams.c
View file @
5c1ffddb
...
...
@@ -399,93 +399,6 @@ static void SYSPARAMS_NonClientMetrics32WTo32A( const NONCLIENTMETRICSW* lpnm32W
SYSPARAMS_LogFont32WTo32A
(
&
lpnm32W
->
lfMessageFont
,
&
lpnm32A
->
lfMessageFont
);
}
/***********************************************************************
* SYSPARAMS_Reset
*
* Sets the system parameter which should be always loaded to
* current value stored in registry.
* Invalidates lazy loaded parameter, so it will be loaded the next time
* it is requested.
*
* Parameters:
* uiAction - system parameter to reload value for.
* Note, only "SET" values can be used for this parameter.
* If uiAction is 0 all system parameters are reset.
*/
void
SYSPARAMS_Reset
(
UINT
uiAction
)
{
#define WINE_RELOAD_SPI(x) \
case x: \
spi_loaded[x##_IDX] = FALSE; \
SystemParametersInfoA( x, 0, dummy_buf, 0 );\
if (uiAction) \
break
#define WINE_IGNORE_SPI(x) \
case x: \
if (uiAction) \
break
#define WINE_INVALIDATE_SPI(x) \
case x: \
spi_loaded[x##_IDX] = FALSE; \
break
BOOL
not_all_processed
=
TRUE
;
char
dummy_buf
[
10
];
/* Execution falls through all the branches for uiAction == 0 */
switch
(
uiAction
)
{
case
0
:
memset
(
spi_loaded
,
0
,
sizeof
(
spi_loaded
)
);
WINE_RELOAD_SPI
(
SPI_SETBORDER
);
WINE_RELOAD_SPI
(
SPI_ICONHORIZONTALSPACING
);
WINE_RELOAD_SPI
(
SPI_ICONVERTICALSPACING
);
WINE_IGNORE_SPI
(
SPI_SETSCREENSAVEACTIVE
);
WINE_RELOAD_SPI
(
SPI_SETDOUBLECLKWIDTH
);
WINE_RELOAD_SPI
(
SPI_SETDOUBLECLKHEIGHT
);
WINE_RELOAD_SPI
(
SPI_SETMOUSEBUTTONSWAP
);
WINE_RELOAD_SPI
(
SPI_SETSHOWSOUNDS
);
WINE_RELOAD_SPI
(
SPI_SETMENUDROPALIGNMENT
);
default:
if
(
uiAction
)
{
/* lazy loaded parameters */
switch
(
uiAction
)
{
WINE_INVALIDATE_SPI
(
SPI_SETBEEP
);
WINE_INVALIDATE_SPI
(
SPI_SETMOUSE
);
WINE_INVALIDATE_SPI
(
SPI_SETKEYBOARDSPEED
);
WINE_INVALIDATE_SPI
(
SPI_SETSCREENSAVETIMEOUT
);
WINE_INVALIDATE_SPI
(
SPI_SETGRIDGRANULARITY
);
WINE_INVALIDATE_SPI
(
SPI_SETKEYBOARDDELAY
);
WINE_INVALIDATE_SPI
(
SPI_SETICONTITLEWRAP
);
WINE_INVALIDATE_SPI
(
SPI_SETDOUBLECLICKTIME
);
WINE_INVALIDATE_SPI
(
SPI_SETDRAGFULLWINDOWS
);
WINE_INVALIDATE_SPI
(
SPI_SETWORKAREA
);
WINE_INVALIDATE_SPI
(
SPI_SETKEYBOARDPREF
);
WINE_INVALIDATE_SPI
(
SPI_SETSCREENREADER
);
WINE_INVALIDATE_SPI
(
SPI_SETSCREENSAVERRUNNING
);
default:
FIXME
(
"Unknown action reset: %u
\n
"
,
uiAction
);
break
;
}
}
else
not_all_processed
=
FALSE
;
break
;
}
if
(
!
uiAction
&&
not_all_processed
)
ERR
(
"Incorrect implementation of SYSPARAMS_Reset. "
"Not all params are reloaded.
\n
"
);
#undef WINE_INVALIDATE_SPI
#undef WINE_IGNORE_SPI
#undef WINE_RELOAD_SPI
}
/***********************************************************************
* get_volatile_regkey
...
...
@@ -513,7 +426,7 @@ static HKEY get_volatile_regkey(void)
*
* Sends notification about system parameter update.
*/
void
SYSPARAMS_NotifyChange
(
UINT
uiAction
,
UINT
fWinIni
)
static
void
SYSPARAMS_NotifyChange
(
UINT
uiAction
,
UINT
fWinIni
)
{
static
const
WCHAR
emptyW
[
1
];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment