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
954294e3
Commit
954294e3
authored
Jul 30, 1999
by
Francis Beaudet
Committed by
Alexandre Julliard
Jul 30, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed a memory leak in the file dialog.
parent
5fce6fb7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
0 deletions
+9
-0
cdlg.h
dlls/commdlg/cdlg.h
+5
-0
cdlg32.c
dlls/commdlg/cdlg32.c
+2
-0
filedlg95.c
dlls/commdlg/filedlg95.c
+2
-0
No files found.
dlls/commdlg/cdlg.h
View file @
954294e3
...
...
@@ -36,6 +36,10 @@ typedef struct {
}
user_fr
;
}
COMDLG32_FR_Data
;
#define PD32_PRINT_TITLE 7000
#define PD32_PRINT_ALL_X_PAGES 7001
#define PD32_INVALID_PAGE_RANGE 7003
#include "commctrl.h"
extern
HDPA
(
WINAPI
*
COMDLG32_DPA_Create
)
(
INT
);
extern
LPVOID
(
WINAPI
*
COMDLG32_DPA_GetPtr
)
(
const
HDPA
,
INT
);
...
...
@@ -47,5 +51,6 @@ extern BOOL (WINAPI* COMDLG32_DPA_Destroy) (const HDPA);
extern
HICON
(
WINAPI
*
COMDLG32_ImageList_GetIcon
)
(
HIMAGELIST
,
INT
,
UINT
);
extern
HIMAGELIST
(
WINAPI
*
COMDLG32_ImageList_LoadImageA
)
(
HINSTANCE
,
LPCSTR
,
INT
,
INT
,
COLORREF
,
UINT
,
UINT
);
extern
BOOL
(
WINAPI
*
COMDLG32_ImageList_Draw
)
(
HIMAGELIST
himl
,
int
i
,
HDC
hdcDest
,
int
x
,
int
y
,
UINT
fStyle
);
extern
BOOL
(
WINAPI
*
COMDLG32_ImageList_Destroy
)
(
HIMAGELIST
himl
);
#endif
dlls/commdlg/cdlg32.c
View file @
954294e3
...
...
@@ -32,6 +32,7 @@ BOOL (WINAPI* COMDLG32_DPA_Destroy) (const HDPA);
HICON
(
WINAPI
*
COMDLG32_ImageList_GetIcon
)
(
HIMAGELIST
,
INT
,
UINT
);
HIMAGELIST
(
WINAPI
*
COMDLG32_ImageList_LoadImageA
)
(
HINSTANCE
,
LPCSTR
,
INT
,
INT
,
COLORREF
,
UINT
,
UINT
);
BOOL
(
WINAPI
*
COMDLG32_ImageList_Draw
)
(
HIMAGELIST
himl
,
int
i
,
HDC
hdcDest
,
int
x
,
int
y
,
UINT
fStyle
);
BOOL
(
WINAPI
*
COMDLG32_ImageList_Destroy
)
(
HIMAGELIST
himl
);
/***********************************************************************
* COMDLG32_DllEntryPoint (COMDLG32.entry)
...
...
@@ -91,6 +92,7 @@ BOOL WINAPI COMDLG32_DllEntryPoint(HINSTANCE hInstance, DWORD Reason, LPVOID Res
COMDLG32_ImageList_GetIcon
=
(
void
*
)
GetProcAddress
(
COMCTL32_hInstance
,
"ImageList_GetIcon"
);
COMDLG32_ImageList_LoadImageA
=
(
void
*
)
GetProcAddress
(
COMCTL32_hInstance
,
"ImageList_LoadImageA"
);
COMDLG32_ImageList_Draw
=
(
void
*
)
GetProcAddress
(
COMCTL32_hInstance
,
"ImageList_Draw"
);
COMDLG32_ImageList_Destroy
=
(
void
*
)
GetProcAddress
(
COMCTL32_hInstance
,
"ImageList_Destroy"
);
break
;
case
DLL_PROCESS_DETACH
:
...
...
dlls/commdlg/filedlg95.c
View file @
954294e3
...
...
@@ -783,6 +783,8 @@ static LRESULT FILEDLG95_InitUI(HWND hwnd)
/* Detail view icon */
if
((
hicon
=
COMDLG32_ImageList_GetIcon
(
himlToolbar
,
3
,
ILD_NORMAL
)))
SendDlgItemMessageA
(
hwnd
,
IDC_DETAILS
,
BM_SETIMAGE
,(
WPARAM
)
IMAGE_ICON
,(
LPARAM
)
hicon
);
/* Cleanup */
COMDLG32_ImageList_Destroy
(
himlToolbar
);
}
...
...
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