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
e92331ff
Commit
e92331ff
authored
Sep 20, 1999
by
Patrik Stridvall
Committed by
Alexandre Julliard
Sep 20, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed ANSI C violations.
parent
24dd5d9e
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
24 additions
and
14 deletions
+24
-14
filedlgbrowser.c
dlls/commdlg/filedlgbrowser.c
+3
-1
printdlg.c
dlls/commdlg/printdlg.c
+2
-2
builtin16.h
include/builtin16.h
+1
-1
registry.c
misc/registry.c
+12
-6
cursoricon.c
objects/cursoricon.c
+4
-1
build.c
tools/build.c
+2
-3
No files found.
dlls/commdlg/filedlgbrowser.c
View file @
e92331ff
...
...
@@ -72,7 +72,9 @@ static ICOM_VTABLE(ICommDlgBrowser) IShellBrowserImpl_ICommDlgBrowser_Vtbl =
*/
HRESULT
IShellBrowserImpl_ICommDlgBrowser_OnSelChange
(
ICommDlgBrowser
*
iface
,
IShellView
*
ppshv
);
//LPITEMIDLIST GetSelectedPidl(IShellView *ppshv);
#if 0
LPITEMIDLIST GetSelectedPidl(IShellView *ppshv);
#endif
/**************************************************************************
* External Prototypes
...
...
dlls/commdlg/printdlg.c
View file @
e92331ff
...
...
@@ -499,8 +499,8 @@ HGLOBAL PRINTDLG_CreateDevNames(
{
long
size
;
HGLOBAL
hDevNames
;
void
*
pDevNamesSpace
;
void
*
pTempPtr
;
char
*
pDevNamesSpace
;
char
*
pTempPtr
;
LPDEVNAMES
lpDevNames
;
size
=
strlen
(
DeviceDriverName
)
+
1
...
...
include/builtin16.h
View file @
e92331ff
...
...
@@ -40,7 +40,7 @@ typedef struct
WORD
callfrom16
;
}
ENTRYPOINT16
;
#define EP(target, offset) { 0x5566, 0x68, (target), 0xe866, (offset) }
#define EP(target, offset) { 0x5566, 0x68, (target), 0xe866, (
WORD) (
offset) }
typedef
struct
{
...
...
misc/registry.c
View file @
e92331ff
...
...
@@ -454,15 +454,21 @@ static int subkey_found(LPKEYSTRUCT lpcurrkey, LPKEYSTRUCT lpkey_to_find)
static
HKEY
find_root_key
(
LPKEYSTRUCT
lpkey
)
{
typedef
struct
tagROOT_KEYS
{
KEYSTRUCT
*
lpkey
;
HKEY
hkey
;
KEYSTRUCT
*
lpkey
;
HKEY
hkey
;
}
ROOT_KEYS
;
ROOT_KEYS
root_keys
[]
=
{
{
key_classes_root
,
HKEY_CLASSES_ROOT
},
{
key_current_user
,
HKEY_CURRENT_USER
},
{
key_local_machine
,
HKEY_LOCAL_MACHINE
},
{
key_users
,
HKEY_USERS
}
};
ROOT_KEYS
root_keys
[
4
];
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
++
)
{
if
(
subkey_found
(
root_keys
[
i
].
lpkey
,
lpkey
))
...
...
objects/cursoricon.c
View file @
e92331ff
...
...
@@ -437,12 +437,15 @@ static HGLOBAL16 CURSORICON_CreateFromResource( HINSTANCE16 hInstance, HGLOBAL16
int
sizeAnd
,
sizeXor
;
HBITMAP
hAndBits
=
0
,
hXorBits
=
0
;
/* error condition for later */
BITMAPOBJ
*
bmpXor
,
*
bmpAnd
;
POINT16
hotspot
=
{
ICON_HOTSPOT
,
ICON_HOTSPOT
}
;
POINT16
hotspot
;
BITMAPINFO
*
bmi
;
HDC
hdc
;
BOOL
DoStretch
;
INT
size
;
hotspot
.
x
=
ICON_HOTSPOT
;
hotspot
.
y
=
ICON_HOTSPOT
;
TRACE_
(
cursor
)(
"%08x (%u bytes), ver %08x, %ix%i %s %s
\n
"
,
(
unsigned
)
bits
,
cbSize
,
(
unsigned
)
dwVersion
,
width
,
height
,
bIcon
?
"icon"
:
"cursor"
,
(
loadflags
&
LR_MONOCHROME
)
?
"mono"
:
""
);
...
...
tools/build.c
View file @
e92331ff
...
...
@@ -1756,11 +1756,10 @@ static void BuildCallTo16Func( FILE *outfile, char *profile, char *prefix )
args
=
profile
+
5
;
for
(
i
=
0
;
args
[
i
];
i
++
)
{
fprintf
(
outfile
,
" *--("
);
switch
(
args
[
i
])
{
case
'w'
:
fprintf
(
outfile
,
"WORD"
);
break
;
case
'l'
:
fprintf
(
outfile
,
"LONG"
);
break
;
case
'w'
:
fprintf
(
outfile
,
"
args -= sizeof(WORD); *(
WORD"
);
break
;
case
'l'
:
fprintf
(
outfile
,
"
args -= sizeof(LONG); *(
LONG"
);
break
;
default:
fprintf
(
stderr
,
"Unexpected case '%c' in BuildCallTo16Func
\n
"
,
args
[
i
]
);
}
...
...
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