mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-02 01:48:05 +00:00
Bug 180150 - [win] nsWindow::SetIcon should not call ::LoadImageW( ..., LR_LOADFROMFILE | LR_SHARED )
r=pavlov, sr=roc+moz
This commit is contained in:
parent
8b5be13a9d
commit
be23a13ac7
@ -5501,13 +5501,13 @@ NS_METHOD nsWindow::SetIcon(const nsAString& anIconSpec)
|
||||
IMAGE_ICON,
|
||||
::GetSystemMetrics(SM_CXICON),
|
||||
::GetSystemMetrics(SM_CYICON),
|
||||
LR_LOADFROMFILE | LR_SHARED );
|
||||
LR_LOADFROMFILE );
|
||||
HICON smallIcon = (HICON)::LoadImageW( NULL,
|
||||
(LPCWSTR)iconPath.get(),
|
||||
IMAGE_ICON,
|
||||
::GetSystemMetrics(SM_CXSMICON),
|
||||
::GetSystemMetrics(SM_CYSMICON),
|
||||
LR_LOADFROMFILE | LR_SHARED );
|
||||
LR_LOADFROMFILE );
|
||||
|
||||
// See if unicode API not implemented and if not, try ascii version
|
||||
if ( ::GetLastError() == ERROR_CALL_NOT_IMPLEMENTED ) {
|
||||
|
Loading…
Reference in New Issue
Block a user