ReactOS 0.4.16-dev-2104-gb84fa49
LdrFindResource_U.c
Go to the documentation of this file.
1/*
2 * PROJECT: ReactOS API tests
3 * LICENSE: MIT (https://spdx.org/licenses/MIT)
4 * PURPOSE: Test for LdrFindResource_U
5 * COPYRIGHT: Copyright 2025 Timo Kreuzer <timo.kreuzer@reactos.org>
6 */
7
8#include "precomp.h"
9
10static void Test_CORE_20401(void)
11{
16
17 // Use LdrFindResource_U to find a bitmap resource called "NORMAL_FRAMECAPTION_BMP"
18 // CORE-20401 resulted in wrong comparison of strings containing underscores.
19 // If the test fails, the resource name comparison is probably broken (again).
20 info.Type = 2; // RT_BITMAP;
21 info.Name = (ULONG_PTR)L"NORMAL_FRAMECAPTION_BMP";
25}
26
28{
30}
static void Test_CORE_20401(void)
#define ok_ntstatus(status, expected)
Definition: atltest.h:135
#define START_TEST(x)
Definition: atltest.h:75
LONG NTSTATUS
Definition: precomp.h:26
#define NULL
Definition: types.h:112
HMODULE WINAPI GetModuleHandleW(LPCWSTR lpModuleName)
Definition: loader.c:838
#define L(x)
Definition: resources.c:13
#define ULONG_PTR
Definition: config.h:101
Status
Definition: gdiplustypes.h:25
uint32_t entry
Definition: isohybrid.c:63
NTSTATUS NTAPI LdrFindResource_U(_In_ PVOID BaseAddress, _In_ PLDR_RESOURCE_INFO ResourceInfo, _In_ ULONG Level, _Out_ PIMAGE_RESOURCE_DATA_ENTRY *ResourceDataEntry)
static PEXPLICIT_ACCESSW *static HMODULE hmod
Definition: security.c:143
#define LANG_NEUTRAL
Definition: nls.h:22
#define MAKELANGID(p, s)
Definition: nls.h:15
#define SUBLANG_NEUTRAL
Definition: nls.h:167
#define STATUS_SUCCESS
Definition: shellext.h:65
Definition: pedump.c:458