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
fee66fb1
Commit
fee66fb1
authored
Mar 30, 2006
by
Detlef Riekenberg
Committed by
Alexandre Julliard
Mar 30, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
spoolss: Add DllAllocSplMem and DllFreeSplMem.
parent
d53ad9c3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
50 additions
and
2 deletions
+50
-2
spoolss.spec
dlls/spoolss/spoolss.spec
+2
-2
spoolss_main.c
dlls/spoolss/spoolss_main.c
+48
-0
No files found.
dlls/spoolss/spoolss.spec
View file @
fee66fb1
...
...
@@ -38,8 +38,8 @@
@ stub DeletePrinterDriverW
@ stub DeletePrinterIC
@ stub DeletePrinterKeyW
@ st
ub DllAllocSplMem
@ st
ub DllFreeSplMem
@ st
dcall DllAllocSplMem(long)
@ st
dcall DllFreeSplMem(ptr)
@ stub DllFreeSplStr
@ stub EndDocPrinter
@ stub EndPagePrinter
...
...
dlls/spoolss/spoolss_main.c
View file @
fee66fb1
...
...
@@ -45,3 +45,51 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
}
return
TRUE
;
}
/******************************************************************
* DllAllocSplMem [SPOOLSS.@]
*
* Allocate cleared memory from the spooler heap
*
* PARAMS
* size [I] Number of bytes to allocate
*
* RETURNS
* Failure: NULL
* Success: PTR to the allocated memory
*
* NOTES
* We use the process heap (Windows use a separate spooler heap)
*
*/
LPVOID
WINAPI
DllAllocSplMem
(
DWORD
size
)
{
LPVOID
res
;
res
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
size
);
TRACE
(
"(%ld) => %p
\n
"
,
size
,
res
);
return
res
;
}
/******************************************************************
* DllFreeSplMem [SPOOLSS.@]
*
* Free the allocated spooler memory
*
* PARAMS
* memory [I] PTR to the memory allocated by DllAllocSplMem
*
* RETURNS
* Failure: FALSE
* Success: TRUE
*
* NOTES
* We use the process heap (Windows use a separate spooler heap)
*
*/
BOOL
WINAPI
DllFreeSplMem
(
LPBYTE
memory
)
{
TRACE
(
"(%p)
\n
"
,
memory
);
return
HeapFree
(
GetProcessHeap
(),
0
,
memory
);
}
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