Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Kartatz committed Oct 3, 2024
1 parent 4c52d39 commit d8acb3e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
15 changes: 7 additions & 8 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -146,20 +146,19 @@ int main(int argc, argv_t* argv[]) {
int wsize = 0;

struct M3U8DownloadedStreams downloaded_streams = {0};
is_wine();

#if defined(_WIN32) && defined(_UNICODE)
wio_setunicode();
#endif
is_wine();

#if !defined(__HAIKU__)
status = is_administrator();
/*
status = (
#if defined(_WIN32)
if (status && is_wine()) {
status = 0;
}
!is_wine() &&
#endif
*/
is_administrator()
);

if (status) {
err = M3U8ERR_CLI_PRIVILEGED_PROCESS_UNALLOWED;
goto end;
Expand Down
3 changes: 1 addition & 2 deletions src/os.c
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,7 @@ int execute_shell_command(const char* const command) {
*/

#if defined(_UNICODE)
HMODULE module = GetModuleHandleA("ntdll.dll");
//HMODULE module = GetModuleHandleW(L"ntdll.dll");
HMODULE module = GetModuleHandleW(WNTDLL);
#else
HMODULE module = GetModuleHandleA(NTDLL);
#endif
Expand Down

0 comments on commit d8acb3e

Please sign in to comment.