mirror of
https://github.com/reactos/reactos.git
synced 2024-09-11 05:12:43 +00:00
![Colin Finck](/assets/img/avatar_default.png)
Implement the undocumented AlignRpcPtr and UndoAlignRpcPtr functions used by many Rpc* functions in spoolsv according to traced callchains. I could reverse engineer them entirely using rohitab.com's API Monitor and black-box testing. I also add documented tests covering all cases I found out. We now pass 17/17 tests on Windows Server 2003 and ReactOS. Also const-ify a parameter in PackStrings. svn path=/trunk/; revision=74297
27 lines
727 B
C
27 lines
727 B
C
/*
|
|
* PROJECT: ReactOS Print Spooler Router API Tests
|
|
* LICENSE: GNU GPLv2 or any later version as published by the Free Software Foundation
|
|
* PURPOSE: Test list
|
|
* COPYRIGHT: Copyright 2015-2017 Colin Finck <colin@reactos.org>
|
|
*/
|
|
|
|
#define __ROS_LONG64__
|
|
|
|
#define STANDALONE
|
|
#include <apitest.h>
|
|
|
|
extern void func_AlignRpcPtr(void);
|
|
extern void func_PackStrings(void);
|
|
extern void func_ReallocSplStr(void);
|
|
extern void func_SplInitializeWinSpoolDrv(void);
|
|
|
|
const struct test winetest_testlist[] =
|
|
{
|
|
{ "AlignRpcPtr", func_AlignRpcPtr },
|
|
{ "PackStrings", func_PackStrings },
|
|
{ "ReallocSplStr", func_ReallocSplStr },
|
|
{ "SplInitializeWinSpoolDrv", func_SplInitializeWinSpoolDrv },
|
|
|
|
{ 0, 0 }
|
|
};
|