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
0ddd30b0
Commit
0ddd30b0
authored
May 23, 2005
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed unnecessary code in the 16-bit DllEntryPoint function of some
dlls, and also fixed its ordinal in a few places.
parent
b9ecbb61
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
13 additions
and
142 deletions
+13
-142
Makefile.in
dlls/commdlg/Makefile.in
+0
-1
commdlg.spec
dlls/commdlg/commdlg.spec
+0
-1
generic.c
dlls/commdlg/generic.c
+0
-63
msacm.spec
dlls/msacm/msacm.spec
+3
-3
msacm_main.c
dlls/msacm/msacm_main.c
+1
-20
msvideo.spec
dlls/msvideo/msvideo.spec
+2
-2
msvideo16.c
dlls/msvideo/msvideo16.c
+1
-1
ole16.c
dlls/ole32/ole16.c
+0
-14
virtcopy.c
dlls/setupapi/virtcopy.c
+1
-2
shell.c
dlls/shell32/shell.c
+0
-30
mmsystem.c
dlls/winmm/mmsystem.c
+3
-3
mmsystem.spec
dlls/winmm/mmsystem.spec
+2
-2
No files found.
dlls/commdlg/Makefile.in
View file @
0ddd30b0
...
...
@@ -23,7 +23,6 @@ C_SRCS16 = \
filedlg16.c
\
finddlg.c
\
fontdlg16.c
\
generic.c
\
printdlg16.c
SPEC_SRCS16
=
commdlg.spec
...
...
dlls/commdlg/commdlg.spec
View file @
0ddd30b0
...
...
@@ -24,4 +24,3 @@
#29 pascal DWLBSUBCLASS exported, shared data
#30 pascal DWUPARROWHACK exported, shared data
#31 pascal DWOKSUBCLASS exported, shared data
32 pascal DllEntryPoint(long word word word long word) COMMDLG_DllEntryPoint
dlls/commdlg/generic.c
deleted
100644 → 0
View file @
b9ecbb61
/*
* COMMDLG/COMDLG32 functions
*
* Copyright 1994 Martin Ayotte
* Copyright 1996 Albrecht Kleine
* Copyright 1998,1999 Bertho Stultiens
* Copyright 1999 Klaas van Gend
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include <stdarg.h>
#include "windef.h"
#include "winbase.h"
#include "wingdi.h"
#include "winuser.h"
#include "commdlg.h"
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
commdlg
);
#include "cdlg.h"
#include "cdlg16.h"
/***********************************************************************
* DllEntryPoint [COMMDLG.32]
*
* Initialization code for the COMMDLG DLL
*
* RETURNS:
*/
BOOL
WINAPI
COMMDLG_DllEntryPoint
(
DWORD
Reason
,
HINSTANCE16
hInst
,
WORD
ds
,
WORD
HeapSize
,
DWORD
res1
,
WORD
res2
)
{
TRACE
(
"(%08lx, %04x, %04x, %04x, %08lx, %04x)
\n
"
,
Reason
,
hInst
,
ds
,
HeapSize
,
res1
,
res2
);
return
TRUE
;
}
/***********************************************************************
* CommDlgExtendedError16 [COMMDLG.26]
*
* Get the last error value if a commdlg function fails.
* RETURNS
* Current error value which might not be valid
* if a previous call succeeded.
*/
DWORD
WINAPI
CommDlgExtendedError16
(
void
)
{
return
CommDlgExtendedError
();
}
dlls/msacm/msacm.spec
View file @
0ddd30b0
1 stub WEP
#
1 stub WEP
2 stub DRIVERPROC
3 stub ___EXPORTEDSTUB
3 pascal DllEntryPoint(long word word word long word) MSACM_DllEntryPoint
4 stub ___EXPORTEDSTUB
7 pascal acmGetVersion() acmGetVersion16
8 pascal -ret16 acmMetrics(word word ptr) acmMetrics16
10 pascal -ret16 acmDriverEnum(ptr long long) acmDriverEnum16
...
...
@@ -37,4 +38,3 @@
201 stub ACMCLOSECONVERSION
202 stub ACMCONVERT
203 stub ACMCHOOSEFORMAT
255 pascal DllEntryPoint(long word word word long word) MSACM_DllEntryPoint
dlls/msacm/msacm_main.c
View file @
0ddd30b0
...
...
@@ -34,7 +34,7 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
msacm
);
/**************************************************************************
* DllEntryPoint (MSACM.
255
)
* DllEntryPoint (MSACM.
3
)
*
* MSACM DLL entry point
*
...
...
@@ -42,25 +42,6 @@ WINE_DEFAULT_DEBUG_CHANNEL(msacm);
BOOL
WINAPI
MSACM_DllEntryPoint
(
DWORD
fdwReason
,
HINSTANCE16
hinstDLL
,
WORD
ds
,
WORD
wHeapSize
,
DWORD
dwReserved1
,
WORD
wReserved2
)
{
static
HANDLE
hndl
;
TRACE
(
"0x%x 0x%lx
\n
"
,
hinstDLL
,
fdwReason
);
switch
(
fdwReason
)
{
case
DLL_PROCESS_ATTACH
:
if
(
!
hndl
&&
!
(
hndl
=
LoadLibraryA
(
"MSACM32.DLL"
)))
{
ERR
(
"Could not load sibling MsAcm32.dll
\n
"
);
return
FALSE
;
}
break
;
case
DLL_PROCESS_DETACH
:
FreeLibrary
(
hndl
);
hndl
=
0
;
break
;
case
DLL_THREAD_ATTACH
:
case
DLL_THREAD_DETACH
:
break
;
}
return
TRUE
;
}
...
...
dlls/msvideo/msvideo.spec
View file @
0ddd30b0
#1 pascal WEP(word)
2 pascal VideoForWindowsVersion() VideoForWindowsVersion
3 pascal DllEntryPoint(long word word word long word) VIDEO_LibMain
20 stub VIDEOGETNUMDEVS
21 stub VIDEOGETERRORTEXT
22 pascal VideoCapDriverDescAndVer(word ptr word ptr word) VideoCapDriverDescAndVer16
...
...
@@ -64,5 +66,3 @@
251 stub _MCIWNDREGISTERCLASS
252 stub GETOPENFILENAMEPREVIEW
253 stub GETSAVEFILENAMEPREVIEW
300 pascal DllEntryPoint(long word word word long word) VIDEO_LibMain
dlls/msvideo/msvideo16.c
View file @
0ddd30b0
...
...
@@ -884,7 +884,7 @@ static LRESULT CALLBACK IC_CallTo16(HDRVR hdrv, HIC hic, UINT msg, LPARAM lp1,
}
/**************************************************************************
* DllEntryPoint (MSVIDEO.3
00
)
* DllEntryPoint (MSVIDEO.3)
*
* MSVIDEO DLL entry point
*
...
...
dlls/ole32/ole16.c
View file @
0ddd30b0
...
...
@@ -50,9 +50,6 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
ole
);
HINSTANCE16
COMPOBJ_hInstance
=
0
;
static
int
COMPOBJ_Attach
=
0
;
HTASK16
hETask
=
0
;
WORD
Table_ETask
[
62
];
...
...
@@ -512,16 +509,5 @@ HRESULT WINAPI CoGetState16(LPDWORD state)
BOOL
WINAPI
COMPOBJ_DllEntryPoint
(
DWORD
Reason
,
HINSTANCE16
hInst
,
WORD
ds
,
WORD
HeapSize
,
DWORD
res1
,
WORD
res2
)
{
TRACE
(
"(%08lx, %04x, %04x, %04x, %08lx, %04x)
\n
"
,
Reason
,
hInst
,
ds
,
HeapSize
,
res1
,
res2
);
switch
(
Reason
)
{
case
DLL_PROCESS_ATTACH
:
if
(
!
COMPOBJ_Attach
++
)
COMPOBJ_hInstance
=
hInst
;
break
;
case
DLL_PROCESS_DETACH
:
if
(
!--
COMPOBJ_Attach
)
COMPOBJ_hInstance
=
0
;
break
;
}
return
TRUE
;
}
dlls/setupapi/virtcopy.c
View file @
0ddd30b0
...
...
@@ -305,7 +305,7 @@ RETERR16 WINAPI VcpOpen16(VIFPROC vifproc, LPARAM lparamMsgRef)
VCP_MsgRef
=
lparamMsgRef
;
/* load SETUPAPI needed for dialog resources etc. */
SETUPAPI_hInstance
=
LoadLibrary
A
(
"setupapi.dll"
);
SETUPAPI_hInstance
=
GetModuleHandle
A
(
"setupapi.dll"
);
if
(
!
SETUPAPI_hInstance
)
{
ERR
(
"Could not load sibling setupapi.dll
\n
"
);
...
...
@@ -555,7 +555,6 @@ RETERR16 WINAPI VcpClose16(WORD fl, LPCSTR lpszBackupDest)
cbres
=
VCP_Callback
(
&
vcp_status
,
VCPM_VSTATCLOSEEND
,
0
,
0
,
VCP_MsgRef
);
TRACE
(
"#6
\n
"
);
VCP_Proc
=
NULL
;
FreeLibrary
(
SETUPAPI_hInstance
);
VCP_opened
=
FALSE
;
return
OK
;
}
...
...
dlls/shell32/shell.c
View file @
0ddd30b0
...
...
@@ -70,9 +70,6 @@ static HHOOK SHELL_hHook = 0;
static
UINT
uMsgWndCreated
=
0
;
static
UINT
uMsgWndDestroyed
=
0
;
static
UINT
uMsgShellActivate
=
0
;
HINSTANCE16
SHELL_hInstance
=
0
;
HINSTANCE
SHELL_hInstance32
;
static
int
SHELL_Attach
=
0
;
/***********************************************************************
* DllEntryPoint [SHELL.101]
...
...
@@ -87,33 +84,6 @@ static int SHELL_Attach = 0;
BOOL
WINAPI
SHELL_DllEntryPoint
(
DWORD
Reason
,
HINSTANCE16
hInst
,
WORD
ds
,
WORD
HeapSize
,
DWORD
res1
,
WORD
res2
)
{
TRACE
(
"(%08lx, %04x, %04x, %04x, %08lx, %04x)
\n
"
,
Reason
,
hInst
,
ds
,
HeapSize
,
res1
,
res2
);
switch
(
Reason
)
{
case
DLL_PROCESS_ATTACH
:
if
(
SHELL_Attach
++
)
break
;
SHELL_hInstance
=
hInst
;
if
(
!
SHELL_hInstance32
)
{
if
(
!
(
SHELL_hInstance32
=
LoadLibraryA
(
"shell32.dll"
)))
{
ERR
(
"Could not load sibling shell32.dll
\n
"
);
return
FALSE
;
}
}
break
;
case
DLL_PROCESS_DETACH
:
if
(
!--
SHELL_Attach
)
{
SHELL_hInstance
=
0
;
if
(
SHELL_hInstance32
)
FreeLibrary
(
SHELL_hInstance32
);
}
break
;
}
return
TRUE
;
}
...
...
dlls/winmm/mmsystem.c
View file @
0ddd30b0
...
...
@@ -59,7 +59,7 @@ static LRESULT MMIO_Callback16(SEGPTR, LPMMIOINFO, UINT, LPARAM, LPARAM
*/
/**************************************************************************
* DllEntryPoint (MMSYSTEM.
2046
)
* DllEntryPoint (MMSYSTEM.
4
)
*
* MMSYSTEM DLL entry point
*
...
...
@@ -74,7 +74,7 @@ BOOL WINAPI MMSYSTEM_LibMain(DWORD fdwReason, HINSTANCE hinstDLL, WORD ds,
/* need to load WinMM in order to:
* - initiate correctly shared variables (WINMM_Init())
*/
if
(
!
GetModuleHandleA
(
"WINMM.DLL"
)
&&
!
LoadLibraryA
(
"WINMM.DLL"
)
)
if
(
!
GetModuleHandleA
(
"WINMM.DLL"
))
{
ERR
(
"Could not load sibling WinMM.dll
\n
"
);
return
FALSE
;
...
...
@@ -114,7 +114,7 @@ BOOL WINAPI MMSYSTEM_LibMain(DWORD fdwReason, HINSTANCE hinstDLL, WORD ds,
int
WINAPI
MMSYSTEM_WEP
(
HINSTANCE16
hInstance
,
WORD
wDataSeg
,
WORD
cbHeapSize
,
LPSTR
lpCmdLine
)
{
FIXM
E
(
"STUB: Unloading MMSystem DLL ... hInst=%04X
\n
"
,
hInstance
);
TRAC
E
(
"STUB: Unloading MMSystem DLL ... hInst=%04X
\n
"
,
hInstance
);
return
TRUE
;
}
...
...
dlls/winmm/mmsystem.spec
View file @
0ddd30b0
#1 pascal MMSYSTEM_
WEP(word word word ptr) MMSYSTEM_WEP
1 pascal
WEP(word word word ptr) MMSYSTEM_WEP
2 pascal sndPlaySound(ptr word) sndPlaySound16
3 pascal PlaySound(ptr word long) PlaySound16
4 pascal DllEntryPoint(long word word word long word) MMSYSTEM_LibMain
5 pascal mmsystemGetVersion() mmsystemGetVersion16
6 pascal DriverProc(long word word long long) DriverProc16
8 pascal WMMMidiRunOnce() WMMMidiRunOnce16
...
...
@@ -171,6 +172,5 @@
#2005 stub MCIGETTHUNKTABLE
#2006 stub WINMMSL_THUNKDATA16
2046 pascal DllEntryPoint(long word word word long word) MMSYSTEM_LibMain
# these are Wine only exported functions. Is there another way to do it ?
2047 pascal __wine_mmThreadEntryPoint(long) WINE_mmThreadEntryPoint
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