Skip to content

Commit 7717a40

Browse files
authored
Merge pull request #12 from ntoskrnl7/env/vs2010
Env/vs2010
2 parents 9d6ffa2 + 2a479ce commit 7717a40

File tree

6 files changed

+14
-4
lines changed

6 files changed

+14
-4
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ add_executable(tests tests.cpp)
213213
214214
# add dependencies
215215
include(cmake/CPM.cmake)
216-
CPMAddPackage("gh:ntoskrnl7/[email protected].22")
216+
CPMAddPackage("gh:ntoskrnl7/[email protected].23")
217217
218218
# link dependencies
219219
target_link_libraries(tests win32ex)

include/Win32Ex/Internal/misc.hpp

+4
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,10 @@ class WaitableObject
310310
virtual bool Wait(Duration Timeout) = 0;
311311
};
312312

313+
#if _MSC_VER <= 1600
314+
#pragma warning(disable : 4512)
315+
#endif
316+
313317
class Waitable
314318
{
315319
friend class WaitableObject;

include/Win32Ex/Internal/version.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,6 @@ Module Name:
2727

2828
#define WIN32EX_VERSION_MAJOR 0
2929
#define WIN32EX_VERSION_MINOR 8
30-
#define WIN32EX_VERSION_PATCH 22
30+
#define WIN32EX_VERSION_PATCH 23
3131

3232
#endif // _WIN32EX_VERSION_H_

include/Win32Ex/Security/Token.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -361,8 +361,8 @@ typedef struct
361361

362362
WIN32EX_ALWAYS_INLINE BOOL __DefaultLookupTokenExCondition(DWORD ProcessId, HANDLE TokenHandle, PVOID Context)
363363
{
364-
UNREFERENCED_PARAMETER(ProcessId);
365364
__DefaultLookupTokenExConditionContext *ctx = (__DefaultLookupTokenExConditionContext *)Context;
365+
UNREFERENCED_PARAMETER(ProcessId);
366366
return (ctx->TokenCondition) ? ctx->TokenCondition(TokenHandle, ctx->Context) : TRUE;
367367
}
368368

include/Win32Ex/System/Object.h

+3-1
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,11 @@ WIN32EX_ALWAYS_INLINE BOOL IsTemporaryObject(_In_ HANDLE Handle)
5555

5656
WIN32EX_ALWAYS_INLINE BOOL __IsPrivilegeEnabled(_In_ DWORD ProcessId, _In_ HANDLE hToken, _In_ PVOID Context)
5757
{
58-
UNREFERENCED_PARAMETER(ProcessId);
5958
BOOL result = FALSE;
6059
PPRIVILEGE_SET privilegeSet = (PPRIVILEGE_SET)Context;
60+
61+
UNREFERENCED_PARAMETER(ProcessId);
62+
6163
privilegeSet->Control = PRIVILEGE_SET_ALL_NECESSARY;
6264
PrivilegeCheck(hToken, privilegeSet, &result);
6365
return result;

include/Win32Ex/System/Process.hpp

+4
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ Module Name:
2929
#ifndef _WIN32EX_SYSTEM_PROCESS_HPP_
3030
#define _WIN32EX_SYSTEM_PROCESS_HPP_
3131

32+
#if _MSC_VER <= 1600
33+
#pragma warning(disable : 4481 4714)
34+
#endif
35+
3236
#include "../Internal/version.h"
3337
#define WIN32EX_SYSTEM_PROCESS_HPP_VERSION_MAJOR WIN32EX_VERSION_MAJOR
3438
#define WIN32EX_SYSTEM_PROCESS_HPP_VERSION_MINOR WIN32EX_VERSION_MINOR

0 commit comments

Comments
 (0)