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
97be4fa9
Commit
97be4fa9
authored
Jan 17, 2006
by
Michael Kaufmann
Committed by
Alexandre Julliard
Jan 17, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
static control: Don't load OEM bitmaps.
parent
2ddbc7b6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
8 deletions
+4
-8
static.c
dlls/user/static.c
+4
-8
No files found.
dlls/user/static.c
View file @
97be4fa9
...
@@ -278,10 +278,8 @@ static HICON STATIC_LoadIconW( HWND hwnd, LPCWSTR name, DWORD style )
...
@@ -278,10 +278,8 @@ static HICON STATIC_LoadIconW( HWND hwnd, LPCWSTR name, DWORD style )
static
HBITMAP
STATIC_LoadBitmapA
(
HWND
hwnd
,
LPCSTR
name
)
static
HBITMAP
STATIC_LoadBitmapA
(
HWND
hwnd
,
LPCSTR
name
)
{
{
HINSTANCE
hInstance
=
(
HINSTANCE
)
GetWindowLongPtrW
(
hwnd
,
GWLP_HINSTANCE
);
HINSTANCE
hInstance
=
(
HINSTANCE
)
GetWindowLongPtrW
(
hwnd
,
GWLP_HINSTANCE
);
HBITMAP
hbitmap
=
LoadBitmapA
(
hInstance
,
name
);
/* Windows doesn't try to load OEM Bitmaps (hInstance == NULL) */
if
(
!
hbitmap
)
/* Try OEM icon (FIXME: is this right?) */
return
LoadBitmapA
(
hInstance
,
name
);
hbitmap
=
LoadBitmapA
(
0
,
name
);
return
hbitmap
;
}
}
/***********************************************************************
/***********************************************************************
...
@@ -292,10 +290,8 @@ static HBITMAP STATIC_LoadBitmapA( HWND hwnd, LPCSTR name )
...
@@ -292,10 +290,8 @@ static HBITMAP STATIC_LoadBitmapA( HWND hwnd, LPCSTR name )
static
HBITMAP
STATIC_LoadBitmapW
(
HWND
hwnd
,
LPCWSTR
name
)
static
HBITMAP
STATIC_LoadBitmapW
(
HWND
hwnd
,
LPCWSTR
name
)
{
{
HINSTANCE
hInstance
=
(
HINSTANCE
)
GetWindowLongPtrW
(
hwnd
,
GWLP_HINSTANCE
);
HINSTANCE
hInstance
=
(
HINSTANCE
)
GetWindowLongPtrW
(
hwnd
,
GWLP_HINSTANCE
);
HBITMAP
hbitmap
=
LoadBitmapW
(
hInstance
,
name
);
/* Windows doesn't try to load OEM Bitmaps (hInstance == NULL) */
if
(
!
hbitmap
)
/* Try OEM icon (FIXME: is this right?) */
return
LoadBitmapW
(
hInstance
,
name
);
hbitmap
=
LoadBitmapW
(
0
,
name
);
return
hbitmap
;
}
}
/***********************************************************************
/***********************************************************************
...
...
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